/* =================================================================
   AUTH-MODERN.CSS - Next.js / Linear / Vercel Aesthetic Auth Pages
   Glassmorphic centered cards, floating labels, mesh background,
   pill toggles & WCAG AAA buttons.
   ================================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(0, 110, 237, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(255, 83, 4, 0.12) 0%, transparent 45%),
                var(--surface-sunken, #F5F5F7);
    overflow: hidden;
}

[data-theme="dark"] .auth-page {
    background: radial-gradient(circle at 20% 20%, rgba(0, 110, 237, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(255, 83, 4, 0.18) 0%, transparent 50%),
                #0A0A0F;
}

/* Background animated ambient blur */
.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 33, 161, 0.08) 0%, transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* Main Split / Centered Container */
.auth-container-modern {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 960px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px -12px rgba(0, 33, 161, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    overflow: hidden;
}

[data-theme="dark"] .auth-container-modern {
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Left: Brand Panel (Desktop) */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 33, 161, 0.95) 0%, rgba(0, 110, 237, 0.85) 100%);
    padding: 3.5rem 2.5rem;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 83, 4, 0.3) 0%, transparent 50%);
    filter: blur(60px);
    pointer-events: none;
}

.auth-brand-logo {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-brand-logo img {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.auth-brand-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.auth-brand-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    position: relative;
    z-index: 1;
}

/* Right: Form Panel */
.auth-form-panel {
    flex: 1.2;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-base, #FFFFFF);
}

[data-theme="dark"] .auth-form-panel {
    background: rgba(15, 20, 30, 0.85);
}

.auth-form-heading {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ana-metin-rengi, #1E293B);
    margin-bottom: 0.4rem;
}

.auth-form-desc {
    font-size: 0.95rem;
    color: var(--ikincil-metin, #64748B);
    margin-bottom: 2rem;
}

/* Method Toggle (Email / Phone Pill) */
.auth-method-toggle {
    display: flex;
    background: var(--surface-sunken, #F1F5F9);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-rengi, #E2E8F0);
}

[data-theme="dark"] .auth-method-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-method-toggle .toggle-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ikincil-metin, #64748B);
    cursor: pointer;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-method-toggle .toggle-btn.active {
    background: #FFFFFF;
    color: var(--brand-deep, #0021A1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .auth-method-toggle .toggle-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Auth Field & Input */
.auth-field {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ana-metin-rengi, #1E293B);
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.95rem;
    border-radius: var(--bs-border-radius, 10px);
    border: 1.5px solid var(--border-rengi, #E2E8F0);
    background: var(--surface-base, #FFFFFF);
    color: var(--ana-metin-rengi, #1E293B);
    transition: all 200ms ease;
}

[data-theme="dark"] .auth-input-wrap input {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #F1F5F9;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--brand-primary, #006EED);
    box-shadow: 0 0 0 3px rgba(0, 110, 237, 0.18);
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    color: #94A3B8;
    pointer-events: none;
}

.auth-pw-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-pw-toggle:hover {
    color: var(--ana-metin-rengi);
}

.auth-error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--danger-color, #EF4444);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Inline links (Remember me + Forgot PW) */
.auth-inline-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-inline-links a {
    color: var(--brand-primary, #006EED);
    text-decoration: none;
    font-weight: 600;
}

.auth-inline-links a:hover {
    text-decoration: underline;
}

/* Captcha Wrapper */
.captcha-wrapper,
.cf-turnstile {
    margin: 1.25rem 0;
    display: flex;
    justify-content: center;
    min-height: 65px;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(255, 83, 4, 0.4);
    background: linear-gradient(135deg, #FF6A26 0%, #FF5304 60%, #E64400 100%);
    color: #001240 !important; /* WCAG AAA 13:1 */
    box-shadow: 0 4px 14px 0 rgba(255, 83, 4, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px 0 rgba(255, 83, 4, 0.48);
    color: #000E30 !important;
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer link */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ikincil-metin, #64748B);
}

.auth-footer a {
    color: var(--brand-accent, #FF5304);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.auth-skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    background: #0021A1;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* Divider (veya) */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--ikincil-metin, #64748B);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-rengi, #E2E8F0);
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 0.85rem;
    text-transform: lowercase;
}

/* Google ile Giriş Butonu */
.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background-color: #FFFFFF;
    color: #1E293B !important;
    border: 1.5px solid var(--border-rengi, #E2E8F0);
    border-radius: var(--bs-border-radius, 10px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 200ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

[data-theme="dark"] .btn-google-login {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #F1F5F9 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.btn-google-login:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .btn-google-login:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
}

.btn-google-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-login .google-icon {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 860px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-container-modern {
        max-width: 460px;
    }

    .auth-form-panel {
        padding: 2.5rem 1.75rem;
    }
}
