/* Giriş və qeydiyyat səhifələri. Vite yığımı tələb etmir; dəyişəndə x-auth.shell-də ?v= artır. */
.auth-page {
    background: #f4f6fb;
    padding: 20px 16px 48px;
    min-height: 70vh;
}

.auth-grid {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.auth-side { display: none; }

.auth-card {
    min-width: 0;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px -24px rgba(15, 23, 42, .25);
}

.auth-title {
    margin: 0 0 6px;
    color: #1a237e;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
}

.auth-sub {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

/* Sahələr: 16px şrift iOS-da avtomatik böyüdülmənin qarşısını alır */
.auth-form label {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.auth-form input:not([type=checkbox]):not([type=hidden]),
.auth-form select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    background-color: #fff;
    color: #0f172a;
    font-size: 16px;
    border-radius: 12px;
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, .15);
}

.auth-phone {
    display: flex;
    min-width: 0;
    gap: 8px;
}

.auth-phone-code {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 10px;
    min-height: 48px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

.auth-form .auth-phone select {
    flex: 0 0 78px;
    width: 78px;
    padding: 0 6px;
    border: 1px solid #d1d5db;
}

.auth-form .auth-phone input {
    flex: 1 1 0;
    padding: 0 12px;
    border: 1px solid #d1d5db;
}

.auth-form .auth-invalid { border-color: #ef4444; }

.auth-hint {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    background: #2962ff;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.auth-submit:hover { background: #1e4fd8; }

.auth-submit:focus-visible,
.auth-google:focus-visible {
    outline: 2px solid #2962ff;
    outline-offset: 2px;
}

.auth-submit:disabled {
    background: #a9bdf5;
    cursor: not-allowed;
}

.auth-link {
    color: #2962ff;
    font-weight: 600;
}

.auth-link:hover { text-decoration: underline; }

.auth-foot {
    margin: 18px 0 0;
    color: #475569;
    font-size: 14px;
    text-align: center;
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s, border-color .15s;
}

.auth-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.auth-google svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #64748b;
    font-size: 13px;
}

.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-alert,
.auth-help,
.auth-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert ul { margin: 2px 0 0; padding: 0; list-style: none; }

.auth-status {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.auth-help {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #334155;
}

.auth-help strong { color: #1a237e; }

.auth-help ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }

.auth-help li + li { margin-top: 4px; }

@media (min-width: 640px) {
    .auth-page { padding: 40px 24px 64px; }
    .auth-card { padding: 32px; }
    .auth-title { font-size: 30px; }
    .auth-phone-code { padding: 0 14px; }
    .auth-form .auth-phone select { flex-basis: 92px; width: 92px; padding: 0 10px; }
}

/* Geniş ekran: solda tanıtım, sağda forma */
@media (min-width: 1024px) {
    .auth-page { padding: 56px 32px 80px; }

    .auth-grid {
        display: grid;
        grid-template-columns: minmax(0, 400px) minmax(0, 560px);
        gap: 48px;
        align-items: start;
        justify-content: center;
        max-width: 1040px;
    }

    .auth-side {
        display: block;
        position: sticky;
        top: 104px;
        padding: 40px 36px;
        background: linear-gradient(160deg, #1a237e 0%, #2962ff 100%);
        color: #fff;
        border-radius: 24px;
    }

    .auth-side h2 {
        margin: 0 0 12px;
        color: #fff;
        font-size: 30px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .auth-side p {
        margin: 0 0 24px;
        color: rgba(255, 255, 255, .85);
        font-size: 16px;
        line-height: 1.55;
    }

    .auth-side ul { margin: 0; padding: 0; list-style: none; }

    .auth-side li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 16px;
        line-height: 1.4;
    }

    .auth-side li + li { margin-top: 14px; }

    .auth-side svg {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        margin-top: 1px;
    }

    .auth-card { padding: 40px; }
}
