﻿/* Portal ana renk paleti: varsayılan teal. Tenant'ın ana rengi (BackOffice / Sayfa Tema Ayarları) varsa
   sayfa head'ine yazılan :root bloğu bu değişkenleri ezer (TenantThemeHelper.BuildCssVariables). */
:root {
    --portal-primary: #0d9488;
    --portal-primary-dark: #0f766e;
    --portal-primary-light: #2dd4bf;
    --portal-primary-lighter: #5eead4;
    --portal-primary-border: #99f6e4;
    --portal-primary-tint: #f0fdfa;
    --portal-primary-rgb: 13, 148, 136;
    --portal-primary-light-rgb: 45, 212, 191;
}

@font-face {
    font-family: InterVariable;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable.woff2?v=4.1') format('woff2');
}

@font-face {
    font-family: InterVariable;
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable-Italic.woff2?v=4.1') format('woff2');
}

@font-face {
    font-family: 'Inter var';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable.woff2?v=4.1') format('woff2');
}

@font-face {
    font-family: 'Inter var';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable-Italic.woff2?v=4.1') format('woff2');
}

@font-feature-values InterVariable {
    @character-variant {
        cv01: 1;
        cv02: 2;
        cv03: 3;
        cv04: 4;
        cv05: 5;
        cv06: 6;
        cv07: 7;
        cv08: 8;
        cv09: 9;
        cv10: 10;
        cv11: 11;
        cv12: 12;
        cv13: 13;
        alt-1: 1; /* Alternate one */
        alt-3: 9; /* Flat-top three */
        open-4: 2; /* Open four */
        open-6: 3; /* Open six */
        open-9: 4; /* Open nine */
        lc-l-with-tail: 5; /* Lower-case L with tail */
        simplified-u: 6; /* Simplified u */
        alt-double-s: 7; /* Alternate German double s */
        uc-i-with-serif: 8; /* Upper-case i with serif */
        uc-g-with-spur: 10; /* Capital G with spur */
        single-story-a: 11; /* Single-story a */
        compact-lc-f: 12; /* Compact f */
        compact-lc-t: 13; /* Compact t */
    }

    @styleset {
        ss01: 1;
        ss02: 2;
        ss03: 3;
        ss04: 4;
        ss05: 5;
        ss06: 6;
        ss07: 7;
        ss08: 8;
        open-digits: 1; /* Open digits */
        disambiguation: 2; /* Disambiguation (with zero) */
        disambiguation-except-zero: 4; /* Disambiguation (no zero) */
        round-quotes-and-commas: 3; /* Round quotes &amp; commas */
        square-punctuation: 7; /* Square punctuation */
        square-quotes: 8; /* Square quotes */
        circled-characters: 5; /* Circled characters */
        squared-characters: 6; /* Squared characters */
    }
}

@font-feature-values Inter {
    @character-variant {
        cv01: 1;
        cv02: 2;
        cv03: 3;
        cv04: 4;
        cv05: 5;
        cv06: 6;
        cv07: 7;
        cv08: 8;
        cv09: 9;
        cv10: 10;
        cv11: 11;
        cv12: 12;
        cv13: 13;
        alt-1: 1; /* Alternate one */
        alt-3: 9; /* Flat-top three */
        open-4: 2; /* Open four */
        open-6: 3; /* Open six */
        open-9: 4; /* Open nine */
        lc-l-with-tail: 5; /* Lower-case L with tail */
        simplified-u: 6; /* Simplified u */
        alt-double-s: 7; /* Alternate German double s */
        uc-i-with-serif: 8; /* Upper-case i with serif */
        uc-g-with-spur: 10; /* Capital G with spur */
        single-story-a: 11; /* Single-story a */
        compact-lc-f: 12; /* Compact f */
        compact-lc-t: 13; /* Compact t */
    }

    @styleset {
        ss01: 1;
        ss02: 2;
        ss03: 3;
        ss04: 4;
        ss05: 5;
        ss06: 6;
        ss07: 7;
        ss08: 8;
        open-digits: 1; /* Open digits */
        disambiguation: 2; /* Disambiguation (with zero) */
        disambiguation-except-zero: 4; /* Disambiguation (no zero) */
        round-quotes-and-commas: 3; /* Round quotes &amp; commas */
        square-punctuation: 7; /* Square punctuation */
        square-quotes: 8; /* Square quotes */
        circled-characters: 5; /* Circled characters */
        squared-characters: 6; /* Squared characters */
    }
}

@font-feature-values InterDisplay {
    @character-variant {
        cv01: 1;
        cv02: 2;
        cv03: 3;
        cv04: 4;
        cv05: 5;
        cv06: 6;
        cv07: 7;
        cv08: 8;
        cv09: 9;
        cv10: 10;
        cv11: 11;
        cv12: 12;
        cv13: 13;
        alt-1: 1; /* Alternate one */
        alt-3: 9; /* Flat-top three */
        open-4: 2; /* Open four */
        open-6: 3; /* Open six */
        open-9: 4; /* Open nine */
        lc-l-with-tail: 5; /* Lower-case L with tail */
        simplified-u: 6; /* Simplified u */
        alt-double-s: 7; /* Alternate German double s */
        uc-i-with-serif: 8; /* Upper-case i with serif */
        uc-g-with-spur: 10; /* Capital G with spur */
        single-story-a: 11; /* Single-story a */
        compact-lc-f: 12; /* Compact f */
        compact-lc-t: 13; /* Compact t */
    }

    @styleset {
        ss01: 1;
        ss02: 2;
        ss03: 3;
        ss04: 4;
        ss05: 5;
        ss06: 6;
        ss07: 7;
        ss08: 8;
        open-digits: 1; /* Open digits */
        disambiguation: 2; /* Disambiguation (with zero) */
        disambiguation-except-zero: 4; /* Disambiguation (no zero) */
        round-quotes-and-commas: 3; /* Round quotes &amp; commas */
        square-punctuation: 7; /* Square punctuation */
        square-quotes: 8; /* Square quotes */
        circled-characters: 5; /* Circled characters */
        squared-characters: 6; /* Squared characters */
    }
}

:root {
    font-family: 'InterVariable', sans-serif;
}
/* ============================================================
   AUTH LAYOUT
   ============================================================ */

.auth-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
}

.auth-body {
    display: flex;
    flex: 1;
}

.auth-aside {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
    position: relative;
    overflow: hidden;
    background-color: var(--portal-primary);
    background-image:
        linear-gradient(135deg, var(--portal-primary-light), var(--portal-primary)),
        radial-gradient(ellipse 60% 40% at 12% 15%, rgba(255,255,255,0.14), transparent 60%),
        radial-gradient(ellipse 55% 40% at 90% 10%, rgba(255,255,255,0.08), transparent 65%),
        radial-gradient(ellipse 70% 50% at 25% 95%, rgba(6,95,86,0.45), transparent 60%),
        radial-gradient(ellipse 60% 45% at 95% 85%, rgba(var(--portal-primary-light-rgb), 0.25), transparent 65%),
        radial-gradient(ellipse 45% 60% at 60% 45%, rgba(255,255,255,0.05), transparent 70%);
    background-blend-mode: normal, soft-light, soft-light, multiply, soft-light, soft-light;
    padding: 48px;
    color: white;
}

    .auth-aside::before {
        content: '';
        position: absolute;
        top: 32px;
        right: 32px;
        width: 130px;
        height: 130px;
        background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1.5px, transparent 1.5px);
        background-size: 14px 14px;
        -webkit-mask-image: radial-gradient(circle, black 0%, transparent 72%);
        mask-image: radial-gradient(circle, black 0%, transparent 72%);
        pointer-events: none;
    }

@media (min-width: 1024px) {
    .auth-aside {
        display: flex;
    }
}

.auth-aside-logo {
    display: flex;
    align-items: center;
}

.auth-aside-logo-img {
    height: 40px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.auth-aside-logo-icon {
    color: white;
}

.auth-aside-logo-text {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.auth-aside-subtitle {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
}

.auth-aside-heading {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.auth-aside-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.auth-aside-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.auth-aside-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0,0,0,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 14px;
}

.auth-aside-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255,255,255,0.92);
    color: var(--portal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-aside-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .auth-aside-card h3 {
        margin-top: 0;
        font-weight: 500;
        color: white;
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.2;
    }

    .auth-aside-card p {
        font-size: 13px;
        color: rgba(255,255,255,0.8);
    }

.auth-aside-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.auth-aside-trust {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.auth-aside-trust-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .auth-aside-trust-icon svg {
        width: 18px;
        height: 18px;
    }

.auth-aside-trust-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.auth-aside-trust-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

.auth-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at 85% 8%, rgba(var(--portal-primary-rgb), 0.08) 0%, transparent 45%),
        radial-gradient(circle at 10% 92%, rgba(var(--portal-primary-light-rgb), 0.10) 0%, transparent 50%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-main {
        width: 60%;
    }
}

.auth-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.auth-main-logo-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--portal-primary);
}

@media (min-width: 1024px) {
    .auth-main-logo-mobile {
        display: none;
    }
}

.auth-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-payment-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--portal-primary);
    border-radius: 999px;
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

    .auth-payment-page-btn:hover {
        background-color: var(--portal-primary);
        color: #fff;
    }

.auth-lang-switch {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.auth-lang-switch a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

    .auth-lang-switch a:hover {
        color: var(--portal-primary);
    }

    .auth-lang-switch a.active {
        color: var(--portal-primary);
    }

.auth-lang-switch-sep {
    color: #cbd5e1;
}

.auth-main-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
}

    .auth-main-content::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 520px;
        height: 400px;
        max-width: 90vw;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: var(--portal-primary-light);
        filter: blur(130px);
        opacity: 0.25;
        pointer-events: none;
        z-index: 0;
    }

/* Firma logosu giriş kartının içinde, başlığın üstünde. */
.auth-form-logo {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-form-logo img {
    height: 56px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.auth-form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 448px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 8px 16px rgba(15, 23, 42, 0.05),
        0 24px 48px rgba(15, 23, 42, 0.08);
}

    .auth-form-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(var(--portal-primary-rgb), 0.4), transparent);
    }

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 28px 20px;
        border-radius: 16px;
    }
}

.auth-support-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.auth-support-row svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.auth-support-link {
    font-weight: 500;
    color: var(--portal-primary);
    text-decoration: none;
    transition: color 0.15s;
}

    .auth-support-link:hover {
        color: var(--portal-primary-dark);
        text-decoration: underline;
    }

.auth-main-footer {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.auth-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-bottom: 8px;
}

.auth-footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
}

    .auth-footer-link:hover {
        color: var(--portal-primary);
        text-decoration: underline;
    }

/* ============================================================
   AUTH FORM
   ============================================================ */

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--portal-primary-rgb), 0.1);
    box-shadow: 0 0 0 8px rgba(var(--portal-primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--portal-primary);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.auth-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
}

.auth-alert-error {
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    padding: 12px 16px;
    font-size: 14px;
    color: #b91c1c;
}

.auth-alert-success {
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    padding: 12px 16px;
    font-size: 14px;
    color: #065f46;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    background: #f9fafb;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
}

    .auth-input:hover {
        border-color: rgba(15, 23, 42, 0.2);
    }

    .auth-input::placeholder {
        color: #9ca3af;
    }

    .auth-input:focus {
        background: #ffffff;
        border-color: var(--portal-primary);
        box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb), 0.12);
    }

.auth-input-has-toggle {
    padding-right: 40px;
}

.auth-input-has-toggle::-ms-reveal,
.auth-input-has-toggle::-ms-clear {
    display: none;
}

.auth-input-has-toggle::-webkit-credentials-auto-fill-button,
.auth-input-has-toggle::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.auth-input-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

    .auth-input-toggle:hover {
        color: var(--portal-primary);
        background: rgba(var(--portal-primary-rgb), 0.08);
    }

    .auth-input-toggle svg {
        pointer-events: none;
    }

.auth-validation {
    font-size: 12px;
    color: #dc2626;
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.auth-remember-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    accent-color: var(--portal-primary);
}

/* Beni Hatırla — toggle switch */
.auth-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.auth-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s;
}

.auth-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s;
}

.auth-toggle-input:checked ~ .auth-toggle-track {
    background: var(--portal-primary);
}

    .auth-toggle-input:checked ~ .auth-toggle-track .auth-toggle-thumb {
        transform: translateX(16px);
    }

.auth-toggle-input:focus-visible ~ .auth-toggle-track {
    box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb), 0.25);
}

.auth-forgot-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-primary);
    text-decoration: none;
    transition: color 0.15s;
}

    .auth-forgot-link:hover {
        color: var(--portal-primary-dark);
    }

.auth-forgot-standalone {
    text-align: center;
}

.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--portal-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--portal-primary-rgb), 0.25);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

    .auth-btn-primary:hover {
        background: var(--portal-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(var(--portal-primary-rgb), 0.3);
    }

    .auth-btn-primary:active {
        transform: translateY(0);
    }

    .auth-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* ============================================================
   OTP SAYFASI
   ============================================================ */

.otp-wrapper {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}

.otp-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.otp-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--portal-primary-rgb), 0.1);
    box-shadow: 0 0 0 8px rgba(var(--portal-primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--portal-primary);
}

.otp-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.otp-subtitle {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    color: #64748b;
}

.otp-input {
    width: 208px;
    border-radius: 12px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    padding: 12px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.6em;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .otp-input:focus {
        border-color: var(--portal-primary);
        box-shadow: 0 0 0 2px rgba(var(--portal-primary-rgb), 0.15);
    }

    .otp-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f9fafb;
    }

.otp-input-wrapper {
    display: flex;
    justify-content: center;
}

/* Tek input yerine 6 ayrı kutu */
.otp-digit-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-digit {
    width: 44px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    background: #f9fafb;
    border: 2px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

    .otp-digit:hover {
        border-color: rgba(var(--portal-primary-rgb), 0.45);
    }

    .otp-digit:focus {
        background: #ffffff;
        border-color: var(--portal-primary);
        box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb), 0.12);
    }

    .otp-digit.otp-digit-filled {
        transform: scale(1.03);
        border-color: rgba(var(--portal-primary-rgb), 0.5);
        background: #ffffff;
    }

    .otp-digit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f9fafb;
    }

@media (max-width: 400px) {
    .otp-digit {
        width: 38px;
        height: 50px;
        font-size: 18px;
    }

    .otp-digit-group {
        gap: 8px;
    }
}

/* Dairesel geri sayım halkası */
.otp-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 14px;
    color: #64748b;
}

.otp-timer-ring {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
}

    .otp-timer-ring circle {
        fill: none;
        stroke-width: 2;
    }

    .otp-timer-ring .otp-timer-ring-bg {
        stroke: #e2e8f0;
    }

    .otp-timer-ring .otp-timer-ring-progress {
        stroke: var(--portal-primary);
        stroke-linecap: round;
        transition: stroke-dashoffset 1s linear;
    }

.otp-timer-value {
    font-weight: 600;
    color: #374151;
}

.otp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--portal-primary);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--portal-primary-rgb), 0.25);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

    .otp-btn:hover {
        background: var(--portal-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(var(--portal-primary-rgb), 0.3);
    }

    .otp-btn:active {
        transform: translateY(0) scale(0.98);
    }

    .otp-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.otp-resend {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.otp-resend-link {
    font-weight: 600;
    color: var(--portal-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

    .otp-resend-link:hover {
        color: var(--portal-primary-dark);
        text-decoration: underline;
    }

.otp-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

    .otp-type-btn:hover {
        border-color: var(--portal-primary);
        color: var(--portal-primary);
        background: rgba(var(--portal-primary-rgb), 0.05);
    }

.otp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

    .otp-back-link:hover {
        color: #374151;
    }

.otp-spinner {
    display: none;
}

    .otp-spinner svg {
        animation: spin 1s linear infinite;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-6px);
    }

    40%, 80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* ============================================================
   Panel Görünümü — giriş sol paneli (PortalAppearanceHelper.LoginClass)
   auth-aside-brand : ana renkten koyu geçiş + alt dalga süsü (koyu sol menüyle aynı dil)
   auth-aside-image : görsel + okunurluk katmanı (--auth-aside-image / --auth-aside-overlay)
   ============================================================ */
.auth-aside.auth-aside-brand {
    background-color: var(--portal-primary-dark);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 320' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C160 60 340 230 600 110 L600 320 L0 320Z' fill='%23ffffff' fill-opacity='.06'/%3E%3Cpath d='M0 220 C180 150 380 300 600 200 L600 320 L0 320Z' fill='%23ffffff' fill-opacity='.08'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .45) 100%),
        linear-gradient(150deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    background-repeat: no-repeat;
    background-position: bottom left, center, center;
    background-size: 100% 320px, cover, cover;
    background-blend-mode: normal;
}

.auth-aside.auth-aside-image {
    background-color: #0f172a;
    background-image:
        linear-gradient(rgba(0, 0, 0, var(--auth-aside-overlay, .45)), rgba(0, 0, 0, var(--auth-aside-overlay, .45))),
        var(--auth-aside-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
}

.auth-aside.auth-aside-image::before {
    display: none;
}

/* Sol panel: içerik bloğu dikeyde ortalanır, güven satırı en altta kalır. */
.auth-aside > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
