/* Kirish sahifalari (foydalanuvchi va admin) hamda 404 sahifasi: umumiy rasmiy ko'rinish */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
.auth-card {
    width: 100%; max-width: 920px;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.auth-card.auth-single { max-width: 420px; grid-template-columns: 1fr; }
.auth-info {
    background: var(--sb-bg); color: var(--sb-fg);
    padding: 40px 36px;
    display: flex; flex-direction: column; gap: 16px;
}
html[data-sidebar="light"] .auth-info { background: var(--acc); color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.auth-brand strong { display: block; font-size: 1.125rem; line-height: 1.2; }
.auth-brand small { display: block; opacity: .8; font-size: .8125rem; }
.auth-info h1 { font-size: 1.5rem; font-weight: 600; margin: 8px 0 0; color: inherit; }
.auth-info p { opacity: .92; font-size: .9375rem; line-height: 1.6; margin: 0; }
.auth-info details { margin-top: auto; }
.auth-info summary { cursor: pointer; font-weight: 500; opacity: .95; }
.auth-info details p { margin-top: 10px; font-size: .875rem; max-height: 220px; overflow-y: auto; padding-right: 6px; }
.auth-info a { color: inherit; }

.auth-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 1.375rem; font-weight: 600; margin: 0 0 4px; }
.auth-form .auth-sub { color: var(--text-muted); margin: 0 0 24px; font-size: .9375rem; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .field label { display: block; font-size: .875rem; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.auth-form .input-wrap { position: relative; }
.auth-form .input-wrap > i.fa-solid:first-child { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.auth-form .input-wrap input {
    width: 100%; padding: 10px 40px 10px 38px;
    font-size: .9375rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    outline: none;
}
.auth-form .input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18); }
.auth-form .toggle-pass {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-muted);
    border-radius: var(--radius-sm); cursor: pointer;
}
.auth-form .toggle-pass:hover { background: var(--surface-2); color: var(--text); }
.auth-submit {
    width: 100%; padding: 10px 16px; margin-top: 8px;
    font-size: 1rem; font-weight: 600; color: #fff;
    background: var(--primary); border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
html[data-theme="dark"] .auth-submit { color: #0b1218; }
.auth-submit:hover { background: var(--primary-hover); }
.auth-submit:disabled { opacity: .6; cursor: progress; }
.auth-help { margin-top: 16px; font-size: .875rem; text-align: center; }
.auth-social { display: flex; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.auth-social a {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); border: 1px solid var(--border); border-radius: 50%; text-decoration: none;
}
.auth-social a:hover { color: var(--primary); border-color: var(--primary); }

/* 404 */
.auth-error { text-align: center; padding: 48px 32px; }
.auth-error .code { font-size: 4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.auth-error h1 { font-size: 1.375rem; margin: 12px 0 6px; }
.auth-error p { color: var(--text-muted); margin-bottom: 20px; }
.auth-error .btn-home { display: inline-block; padding: 9px 22px; background: var(--primary); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
html[data-theme="dark"] .auth-error .btn-home { color: #0b1218; }

@media (max-width: 767.98px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-info { padding: 28px 24px; }
    .auth-form { padding: 28px 24px; }
}
