/**
 * Ortak giriş sayfaları — login.php, login_totp.php
 */

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    background: #0f172a;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 80% at 10% 20%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 100% 70% at 90% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
        linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M24 0v6M24 42v6M0 24h6M42 24h6'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.06),
        0 24px 48px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

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

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

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: #fff;
    background: linear-gradient(145deg, #6366f1 0%, #4f46e5 45%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

@media (max-width: 480px) {
    .auth-mark {
        width: 74px;
        height: 74px;
    }
}

.auth-mark--image {
    background: transparent;
    border: none;
    box-shadow: none;
}

.auth-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.auth-brand h1 {
    margin: 0 0 8px 0;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.auth-brand p {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.45;
}

.auth-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid #fecaca;
}

.auth-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid #a7f3d0;
}

.auth-forgot-wrap {
    margin-top: 18px;
    text-align: center;
}

.auth-card--paused .auth-mark {
    font-size: 1.5rem;
    background: linear-gradient(145deg, #64748b 0%, #475569 100%);
    box-shadow: 0 8px 24px rgba(71, 85, 105, 0.35);
}

.auth-card--paused .auth-paused-lead {
    margin: 0;
    font-size: clamp(1.02rem, 2.8vw, 1.12rem);
    font-weight: 600;
    color: #334155;
    line-height: 1.55;
}

.auth-paused-body {
    margin-top: 8px;
}

.auth-paused-text {
    margin: 0 0 14px 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.auth-paused-hint {
    margin: 0 0 18px 0;
    font-size: 0.86rem;
    color: #64748b;
}

.auth-paused-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: auto;
    min-width: 200px;
    background: #f1f5f9;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-btn--secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
}

.auth-form input[type='text'],
.auth-form input[type='password'],
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-btn {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

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

.auth-btn:focus-visible {
    outline: 2px solid #312e81;
    outline-offset: 2px;
}

.auth-footnote {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.auth-footnote strong {
    color: #334155;
}

.auth-footnote code {
    font-size: 0.85em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #0f172a;
}

/* TOTP adımı */
.auth-card--totp .auth-totp-input {
    font-size: 1.35rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 14px 16px;
}

.auth-sub {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-sub strong {
    color: #0f172a;
}

.auth-link-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.auth-link-back:hover {
    text-decoration: underline;
    color: #4338ca;
}

.auth-card--totp h1.auth-title-totp {
    font-size: 1.35rem;
    margin-bottom: 6px;
}
