.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--auth-bg, #F3F6FB);
    color: var(--auth-text, #111827);
    --auth-card-bg: #FFFFFF;
    --auth-card-border: #E5E7EB;
    --auth-muted: #6B7280;
    --auth-input-bg: #FFFFFF;
    --auth-input-border: #D1D5DB;
}

html[data-theme="dark"] .auth-page,
.auth-page[data-theme="dark"] {
    --auth-bg: #0B1120;
    --auth-text: #F3F4F6;
    --auth-card-bg: #111827;
    --auth-card-border: #1F2937;
    --auth-muted: #9CA3AF;
    --auth-input-bg: #0F172A;
    --auth-input-border: #374151;
}

html[data-theme="light"] .auth-page,
.auth-page[data-theme="light"],
.auth-page:not([data-theme]) {
    --auth-bg: #F3F6FB;
    --auth-text: #111827;
    --auth-card-bg: #FFFFFF;
    --auth-card-border: #E5E7EB;
    --auth-muted: #6B7280;
    --auth-input-bg: #FFFFFF;
    --auth-input-border: #D1D5DB;
}

.auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-home-link:hover {
    color: var(--primary-blue, #0A3A82);
}

.auth-theme-toggle {
    border: 1px solid var(--auth-card-border);
    background: var(--auth-card-bg);
    color: var(--auth-text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 48px;
}

.auth-shell {
    width: 100%;
    max-width: 480px;
}

.auth-shell.auth-shell-wide {
    max-width: 540px;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-link {
    display: inline-block;
    text-decoration: none;
}

.auth-logo-link img {
    max-height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue-dark, #062352);
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-page[data-theme="dark"] .auth-card h1,
html[data-theme="dark"] .auth-page .auth-card h1 {
    color: #F9FAFB;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

html[data-theme="dark"] .auth-alert-error,
.auth-page[data-theme="dark"] .auth-alert-error {
    background: #3A171B;
    color: #FECACA;
    border-color: #7F1D1D;
}

.auth-alert-success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

html[data-theme="dark"] .auth-alert-success,
.auth-page[data-theme="dark"] .auth-alert-success {
    background: #0D2F25;
    color: #A7F3D0;
    border-color: #065F46;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-muted);
    margin-bottom: 8px;
}

.auth-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-field-row label {
    margin-bottom: 0;
}

.auth-input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--auth-input-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus,
.auth-card input:focus {
    outline: none;
    border-color: var(--primary-blue, #0A3A82);
    box-shadow: 0 0 0 3px rgba(10, 58, 130, 0.12);
}

.auth-phone-wrap {
    display: flex;
    border: 1px solid var(--auth-input-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--auth-input-bg);
}

.auth-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: color-mix(in srgb, var(--auth-muted) 12%, var(--auth-input-bg));
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid var(--auth-input-border);
    white-space: nowrap;
}

.auth-phone-wrap input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.auth-btn-primary {
    background: var(--primary-blue, #0A3A82);
    color: #fff;
}

.auth-btn-primary:hover {
    background: var(--primary-blue-dark, #062352);
}

.auth-btn-outline {
    background: transparent;
    border: 1px solid var(--auth-input-border);
    color: var(--auth-text);
}

.auth-footer-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-card-border);
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-footer-links a {
    color: var(--primary-blue, #0A3A82);
    font-weight: 700;
    text-decoration: none;
}

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

.auth-inline-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 13px;
}

.auth-inline-links a {
    color: var(--primary-blue, #0A3A82);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    background: #ECFDF5;
    color: #059669;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.consent-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--auth-card-border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: var(--auth-input-bg);
}

.consent-box-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--auth-text);
}

.consent-box-text a {
    color: var(--primary-blue, #0A3A82);
}

.consent-required {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-red, #E30A17);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.auth-page-footer {
    text-align: center;
    padding: 16px 24px 24px;
    font-size: 12px;
    color: var(--auth-muted);
}

@media (max-width: 600px) {
    .auth-card {
        padding: 28px 20px;
    }

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

/* Google ile giriş */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--auth-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}
.auth-google-wrap {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
