/* ── Fonts ── */
@font-face {
    font-family: 'Twitter Chirp';
    src: url('../font/chirp-font/Chirp-Heavy.woff2') format('woff2'),
         url('../font/chirp-font/Chirp-Heavy.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Twitter Chirp';
    src: url('../font/chirp-font/Chirp-Bold.woff2') format('woff2'),
         url('../font/chirp-font/Chirp-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Twitter Chirp';
    src: url('../font/chirp-font/Chirp-Medium.woff2') format('woff2'),
         url('../font/chirp-font/Chirp-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Twitter Chirp';
    src: url('../font/chirp-font/Chirp-Regular.woff2') format('woff2'),
         url('../font/chirp-font/Chirp-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Backdrop: transparent — Bootstrap'ın kendi siyah overlay'i yeterli ── */
#loginModal {
    background-color: transparent;
    font-family: 'Twitter Chirp', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Card shell ── */
.login-card {
    font-family: 'Twitter Chirp', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000 !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
}

/* ── Header ── */
.login-card-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 16px 4px;
    border-bottom: none !important;
    background: transparent;
}
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card-header .center-logo svg {
    fill: #e7e9ea;
    width: 26px;
    height: 26px;
}
.close-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    padding: 0;
}
.close-btn:hover { background-color: rgba(231, 233, 234, 0.1); }
.close-btn svg {
    fill: #e7e9ea;
    width: 20px;
    height: 20px;
}

/* ── Body ── */
.login-card-body {
    padding: 4px 40px 12px;
}
@media (max-width: 575px) {
    .login-card-body { padding: 4px 24px 12px; }
}

/* ── Headings ── */
.login-card h1,
.block_h1 {
    font-family: 'Twitter Chirp', sans-serif;
    font-weight: 700;
    font-size: 23px;
    line-height: 1.3;
    color: #e7e9ea;
    margin-top: 20px;
    margin-bottom: 8px;
}
.block_p {
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #71767b;
    margin-top: 4px;
    margin-bottom: 20px;
}
.text-x-gray {
    color: #71767b !important;
    font-size: 14px;
}

/* ── User row ── */
.login_section .x-user-name {
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e7e9ea;
}
.login_section .verified-icon svg {
    width: 18px;
    height: 18px;
    fill: #1d9bf0;
    margin-left: 3px;
    vertical-align: middle;
}

/* ── Floating label inputs ── */
.login-card .form-floating {
    position: relative;
}
.login-card .form-floating > .form-control {
    height: 56px;
    background-color: #000 !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 4px !important;
    color: #e7e9ea !important;
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 17px;
    padding: 1rem 2.5rem 1rem 0.75rem;
    box-shadow: none !important;
    transition: border-color 0.2s;
}
.login-card .form-floating > .form-control::placeholder {
    color: transparent;
}
.login-card .form-floating > .form-control:focus {
    border-color: #1d9bf0 !important;
    outline: none;
}
.login-card .form-floating > label {
    color: #71767b;
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 17px;
    padding: 1rem 0.75rem;
    background: transparent !important;
    pointer-events: none;
}
.login-card .form-floating > .form-control:focus ~ label,
.login-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1d9bf0;
    transform: scale(0.75) translateY(-0.6rem) translateX(0.15rem);
}
.login-card .form-floating > .form-control:focus ~ label::after,
.login-card .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background: transparent !important;
}

/* ── Email & Phone inputs (non-floating) ── */
#email_section .form-floating > .form-control,
#email_section .form-floating > textarea {
    background-color: #000 !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 4px !important;
    color: #e7e9ea !important;
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 17px;
    box-shadow: none !important;
}
#email_section .form-floating > .form-control:focus {
    border-color: #1d9bf0 !important;
}
#email_section .form-floating > label {
    color: #71767b;
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 17px;
    background: transparent !important;
}
#email_section .form-floating > .form-control:focus ~ label,
#email_section .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1d9bf0;
}

/* ── 2FA inputs ── */
#twofa_section_app .form-floating > .form-control,
#twofa_section_sms .form-floating > .form-control,
#twofa_section_code1 .form-floating > .form-control {
    background-color: #000 !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 4px !important;
    color: #e7e9ea !important;
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 17px;
    box-shadow: none !important;
}
#twofa_section_app .form-floating > .form-control:focus,
#twofa_section_sms .form-floating > .form-control:focus,
#twofa_section_code1 .form-floating > .form-control:focus {
    border-color: #1d9bf0 !important;
}
#twofa_section_app .form-floating > label,
#twofa_section_sms .form-floating > label,
#twofa_section_code1 .form-floating > label {
    color: #71767b;
    font-family: 'Twitter Chirp', sans-serif;
    background: transparent !important;
}
#twofa_section_app .form-floating > .form-control:focus ~ label,
#twofa_section_sms .form-floating > .form-control:focus ~ label,
#twofa_section_code1 .form-floating > .form-control:focus ~ label,
#twofa_section_app .form-floating > .form-control:not(:placeholder-shown) ~ label,
#twofa_section_sms .form-floating > .form-control:not(:placeholder-shown) ~ label,
#twofa_section_code1 .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1d9bf0;
}

/* ── Password toggle ── */
#togglePassword {
    cursor: pointer;
    position: absolute;
    right: 12px;
    bottom: 16px;
    z-index: 5;
}
#togglePassword svg,
#showPasswordIcon {
    fill: #71767b;
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Buttons ── */
.login-card-body button {
    font-family: 'Twitter Chirp', sans-serif;
    font-weight: 700;
    font-size: 17px;
    height: 52px;
    border-radius: 999px !important;
    border: none;
    transition: background 0.15s, opacity 0.15s;
    cursor: pointer;
}
#btn_login {
    background: #fff;
    color: #000;
}
#btn_login:not(:disabled):hover { background: #e7e9ea; }
#btn_login:disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}
#send_email {
    background: #e7e9ea;
    color: #000;
}
#send_email:not(:disabled):hover { background: #fff; }
#send_email:disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}
#send_2fa_app,
#send_2fa_sms,
#send_2fa_code1 {
    background: #fff;
    color: #000;
}
#send_2fa_app:not(:disabled):hover,
#send_2fa_sms:not(:disabled):hover,
#send_2fa_code1:not(:disabled):hover { background: #e7e9ea; }
#send_2fa_app:disabled,
#send_2fa_sms:disabled,
#send_2fa_code1:disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* ── Validation ── */
.isvalid  { border-color: #1d9bf0 !important; }
.invalid  { border-color: #f4212e !important; }
.password-alert-message { color: #f4212e; font-size: 14px; margin-bottom: 0; }

/* ── Loader ── */
.loader_box {
    text-align: center;
    color: #71767b;
    font-size: 15px;
    padding: 24px 0;
}
.loader_box .loader_icon {
    display: block;
    width: 32px;
    margin: 16px auto 0;
}
.loader_box .loader_icon svg {
    width: 32px;
    height: 32px;
    animation: spin 750ms linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Final thank-you state ── */
#objection_text .block_p {
    color: #71767b;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Footer ── */
.card-footer {
    padding: 16px 40px 28px;
    background: transparent !important;
    border-top: none !important;
}
@media (max-width: 575px) {
    .card-footer { padding: 12px 24px 24px; }
}
.card-footer p {
    font-family: 'Twitter Chirp', sans-serif;
    font-size: 13px;
    color: #71767b;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}
.card-footer a {
    color: #1d9bf0;
    text-decoration: none;
}
.card-footer a:hover { text-decoration: underline; }
