:root {
    --auth-primary: #696cff;
    --auth-primary-strong: #4f55f5;
    --auth-primary-soft: rgba(105, 108, 255, 0.12);
    --auth-text: #1f2640;
    --auth-muted: #6d7396;
    --auth-border: rgba(105, 108, 255, 0.14);
    --auth-surface: rgba(255, 255, 255, 0.95);
    --auth-shadow: 0 24px 80px rgba(62, 77, 194, 0.16);
}

* {
    box-sizing: border-box;
}

body.auth-screen {
    min-height: 100vh;
    margin: 0;
    font-family: "Public Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(105, 108, 255, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(72, 195, 247, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
    color: var(--auth-text);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.auth-showcase,
.auth-panel {
    position: relative;
    padding: 2rem;
}

.auth-showcase {
    overflow: hidden;
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-showcase::before {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    left: -7rem;
    background: rgba(105, 108, 255, 0.14);
}

.auth-showcase::after {
    width: 20rem;
    height: 20rem;
    right: -6rem;
    bottom: -5rem;
    background: rgba(72, 195, 247, 0.12);
}

.auth-showcase__inner {
    position: relative;
    z-index: 1;
    max-width: 41rem;
    height: 100%;
    padding: 1rem 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.auth-showcase__brand img,
.auth-card-modern__logo,
.auth-modal__brand img {
    width: auto;
    height: 8rem;
    object-fit: contain;
}

.auth-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--auth-primary-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-showcase__copy h1 {
    margin: 0 0 0.9rem;
    color: var(--auth-text);
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
}

.auth-showcase__copy p {
    margin: 0;
    max-width: 34rem;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.auth-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.auth-metric-card {
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 40px rgba(96, 106, 160, 0.1);
    backdrop-filter: blur(14px);
}

.auth-metric-card__label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--auth-primary-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-metric-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.auth-metric-card p {
    margin: 0.55rem 0 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.auth-showcase__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.auth-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--auth-text);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-panel__inner {
    width: 100%;
    max-width: 32rem;
}

.auth-card-modern {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.8rem;
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

.auth-card-modern__head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-card-modern__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-modern__head h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.18;
}

.auth-card-modern__head p,
.auth-card-modern__foot span {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field label {
    color: var(--auth-text);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-field__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.auth-field__row a {
    color: var(--auth-primary-strong);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.45rem;
    padding: 0 0.95rem;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus-within {
    border-color: rgba(105, 108, 255, 0.45);
    box-shadow: 0 0 0 0.28rem rgba(105, 108, 255, 0.12);
}

.auth-input i {
    color: var(--auth-primary-strong);
    font-size: 1.15rem;
}

.auth-input .form-control {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--auth-text);
}

.auth-input .form-control:focus {
    box-shadow: none;
}

.auth-password-toggle {
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.captcha-shell {
    display: flex;
    justify-content: flex-start;
    padding: 0.8rem;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    background: #fff;
}

.auth-submit-btn {
    min-height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--auth-primary), #57b8ff);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(87, 120, 255, 0.24);
}

.auth-submit-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.auth-alert {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-alert--danger {
    border: 1px solid rgba(220, 38, 38, 0.14);
    background: rgba(254, 242, 242, 0.92);
    color: #b91c1c;
}

.auth-alert--warning {
    border: 1px solid rgba(217, 119, 6, 0.14);
    background: rgba(255, 251, 235, 0.96);
    color: #b45309;
}

.auth-card-modern__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(105, 108, 255, 0.1);
    font-size: 0.82rem;
}

.auth-card-modern__foot i {
    color: var(--auth-primary-strong);
    margin-right: 0.35rem;
}

.auth-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--auth-shadow);
}

.auth-modal .modal-header,
.auth-modal .modal-body {
    padding: 1.35rem 1.35rem 0;
}

.auth-modal .modal-body {
    padding-bottom: 1.35rem;
}

.auth-modal__brand {
    margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: auto;
        padding-bottom: 0;
    }

    .auth-showcase__inner {
        max-width: none;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .auth-showcase,
    .auth-panel {
        padding: 1rem;
    }

    .auth-card-modern {
        padding: 1.25rem;
        border-radius: 1.35rem;
    }

    .auth-showcase__copy h1 {
        font-size: 1.8rem;
    }

    .auth-metric-grid {
        grid-template-columns: 1fr;
    }

    .auth-card-modern__head h2 {
        font-size: 1.5rem;
    }

    .captcha-shell {
        overflow-x: auto;
    }
}

/* Giriş butonu loading state */
.login-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

#loginBtn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}
