/**
 * Grossmetic admin giriş — marka renkleri (#6b2fa0, #1a1a2e)
 */

:root {
    --auth-primary: #6b2fa0;
    --auth-primary-lt: #8b4fc0;
    --auth-primary-bg: #f0e8fa;
    --auth-sidebar: #1a1a2e;
    --auth-sidebar-soft: #252542;
    --auth-text: #2d2d2d;
    --auth-muted: #6b6b6b;
    --auth-border: #e8e8f0;
    --auth-radius: 16px;
    --auth-radius-sm: 10px;
    --auth-shadow: 0 4px 6px rgba(26, 26, 46, 0.04), 0 24px 48px rgba(26, 26, 46, 0.12);
    --auth-font: 'Poppins', system-ui, sans-serif;
    --auth-font-display: 'Nunito', system-ui, sans-serif;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: var(--auth-font);
    font-size: 14px;
    color: var(--auth-text);
    background-color: #f4f0f8;
    background-image:
        radial-gradient(ellipse 100% 70% at 10% -10%, rgba(107, 47, 160, 0.18), transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(139, 79, 192, 0.12), transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(240, 232, 250, 0.9), transparent 70%);
    position: relative;
    overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(107, 47, 160, 0.08) 0%, transparent 70%);
}

.auth-page::after {
    width: min(320px, 45vw);
    height: min(320px, 45vw);
    bottom: -10%;
    left: -6%;
    background: radial-gradient(circle, rgba(139, 79, 192, 0.1) 0%, transparent 70%);
}

.auth-page > * {
    position: relative;
    z-index: 1;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.auth-card {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--auth-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--auth-shadow);
    border: 1px solid rgba(232, 232, 240, 0.9);
    animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 992px) {
    .auth-card {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        min-height: 580px;
    }
}

/* —— Sol panel —— */
.auth-aside {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(165deg, var(--auth-sidebar) 0%, #2a1f45 48%, #3d2560 100%);
    color: #fff;
    overflow: hidden;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    min-height: 100%;
}

.auth-aside-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.auth-aside-glow--1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    background: rgba(107, 47, 160, 0.45);
}

.auth-aside-glow--2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -40px;
    background: rgba(139, 79, 192, 0.25);
}

.auth-brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-lt));
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.45);
    margin-bottom: 1.25rem;
}

.auth-brand-mark--sm {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0;
    box-shadow: 0 6px 16px rgba(107, 47, 160, 0.35);
}

.auth-aside-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.auth-aside h1 {
    font-family: var(--auth-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.auth-aside .lead {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 24rem;
}

.auth-feature-list {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e9d5ff;
    font-size: 0.9rem;
}

.auth-feature-list strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.auth-feature-list small {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

.auth-aside-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-aside-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-aside-link:hover {
    color: #fff;
}

/* —— Sağ panel (form) —— */
.auth-main {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 576px) {
    .auth-main {
        padding: 2.75rem 3rem;
    }
}

.auth-mobile-title {
    font-family: var(--auth-font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

.auth-mobile-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--auth-muted);
    font-weight: 500;
}

.auth-main-head {
    margin-bottom: 1.5rem;
}

.auth-kicker {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--auth-primary);
    margin-bottom: 0.4rem;
}

.auth-main h2 {
    font-family: var(--auth-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    color: var(--auth-text);
}

.auth-sub {
    font-size: 0.9rem;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a4a5a;
    margin-bottom: 0.4rem;
}

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

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input-wrap .form-control {
    border-radius: var(--auth-radius-sm);
    padding: 0.72rem 0.9rem 0.72rem 2.65rem;
    border: 1.5px solid var(--auth-border);
    font-size: 0.9rem;
    font-family: var(--auth-font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap .form-control:focus {
    border-color: rgba(107, 47, 160, 0.55);
    box-shadow: 0 0 0 4px rgba(107, 47, 160, 0.12);
}

.auth-input-wrap:has(.auth-password-toggle) .form-control {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--auth-muted);
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
    background: var(--auth-primary-bg);
}

.auth-otp-wrap {
    max-width: 280px;
    margin: 0 auto;
}

.auth-otp-input {
    text-align: center;
    font-size: 1.75rem !important;
    font-weight: 700;
    letter-spacing: 0.35em;
    padding: 0.85rem 1rem !important;
    border-radius: var(--auth-radius-sm) !important;
    border: 1.5px solid var(--auth-border) !important;
    font-family: var(--auth-font-display);
}

.auth-otp-input:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 4px rgba(107, 47, 160, 0.12) !important;
}

.auth-otp-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--auth-muted);
    text-align: center;
    line-height: 1.4;
}

.auth-captcha-block .form-control {
    border-radius: var(--auth-radius-sm);
    padding: 0.72rem 0.9rem;
    border: 1.5px solid var(--auth-border);
    font-size: 0.9rem;
}

.auth-captcha-block .form-control:focus {
    border-color: rgba(107, 47, 160, 0.55);
    box-shadow: 0 0 0 4px rgba(107, 47, 160, 0.12);
}

.auth-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-captcha-img-wrap {
    border-radius: var(--auth-radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--auth-border);
    background: #fafafa;
    line-height: 0;
}

.auth-captcha-img-wrap img {
    display: block;
}

.auth-captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    border-radius: var(--auth-radius-sm);
    border: 1.5px solid var(--auth-border);
    background: #fff;
    color: var(--auth-text);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--auth-font);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.auth-captcha-refresh:hover {
    border-color: var(--auth-primary);
    background: var(--auth-primary-bg);
    color: var(--auth-primary);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
    border-radius: var(--auth-radius-sm);
    padding: 0.78rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--auth-font);
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-lt) 100%);
    border: none;
    box-shadow: 0 8px 22px rgba(107, 47, 160, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(107, 47, 160, 0.38);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit .bi {
    font-size: 1.35rem;
    line-height: 1;
    margin-right: -0.15rem;
    transition: transform 0.2s ease;
}

.auth-submit:hover .bi {
    transform: translateX(2px);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: var(--auth-radius-sm);
    border: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-alert-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1rem;
}

.auth-foot {
    margin-top: 1.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.4;
}

.auth-foot--link a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.auth-foot--link a:hover {
    color: #4a1f70;
}

.auth-form--otp {
    margin-top: 0.25rem;
}

/* Açık tema — sistem koyu modu girişi bozmasın */
.auth-page {
    color-scheme: light;
}

.auth-page--light {
    color-scheme: light;
    background-color: #f0f2f5;
    background-image: none;
}

.auth-page--light::before,
.auth-page--light::after {
    display: none;
}

@media (max-width: 991.98px) {
    .auth-card {
        max-width: 440px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}

/* —— Sade giriş (tek kart, geriye dönük) —— */
.auth-wrap--simple {
    padding: 1rem;
}

.auth-card--simple {
    width: min(100%, 400px);
    padding: 2rem 1.75rem;
    display: block;
    min-height: 0;
}

.auth-simple-brand {
    font-family: var(--auth-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-muted);
    text-align: center;
}

.auth-simple-title {
    font-family: var(--auth-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin: 0.35rem 0 1.5rem;
    color: var(--auth-text);
}

.auth-card--simple .auth-field {
    margin-bottom: 1rem;
}

.auth-card--simple .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-card--simple .form-control {
    border-radius: var(--auth-radius-sm);
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--auth-border);
    font-size: 0.9rem;
}

.auth-card--simple .form-control:focus {
    border-color: rgba(107, 47, 160, 0.5);
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

.auth-input-wrap--plain .form-control {
    padding-right: 2.75rem;
}

.auth-card--simple .auth-submit {
    margin-top: 0.25rem;
    box-shadow: none;
    font-size: 0.9rem;
}

.auth-card--simple .auth-alert {
    font-size: 0.82rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
}

.auth-card--simple .auth-captcha-refresh {
    padding: 0 0.75rem;
    min-width: 42px;
}

.auth-card--simple .auth-captcha-refresh span {
    display: none;
}

.auth-simple-back {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
}

.auth-simple-back a {
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-simple-back a:hover {
    color: var(--auth-primary);
}

.auth-card--simple .auth-otp-input {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
}
