/* TadqiqotMaktabi.uz — kirish va ro'yxatdan o'tish sahifalari */

:root {
    --primary: #1E4A7A;
    --primary-hover: #173B62;
    --primary-soft: #EAF0F7;
    --ink: #111827;
    --text: #1F2937;
    --text-2: #4B5563;
    --muted: #6B7280;
    --border: #D7DCE3;
    --bg-alt: #F5F6F8;
    --danger: #B42318;
    --danger-soft: #FEF3F2;
    --success: #067647;
    --success-soft: #ECFDF3;
    --info-soft: #EFF4FA;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ---------- Left panel ---------- */
.auth-aside {
    flex: 0 0 42%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    background: var(--primary);
    color: #fff;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.auth-brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
}

.auth-aside-body {
    max-width: 400px;
}

.auth-aside-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-aside-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.97rem;
}

.auth-aside-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.auth-aside-list li {
    display: flex;
    gap: 0.85rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}

.auth-aside-list b {
    display: block;
    color: #fff;
    font-weight: 600;
}

.auth-aside-num {
    flex: 0 0 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-aside-foot {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Form panel ---------- */
.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    font-size: 0.9rem;
}

.auth-topline a {
    color: var(--text-2);
}

.auth-topline a:hover {
    color: var(--ink);
    text-decoration: none;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink) !important;
}

.auth-mobile-brand .auth-brand-mark {
    background: var(--primary);
    color: #fff;
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px 56px;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-heading {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.auth-subheading {
    color: var(--text-2);
    margin-bottom: 1.75rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: 400 0.95rem var(--sans);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.auth-input {
    appearance: none;
    padding-right: 2.25rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236B7280' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
}

.auth-input::placeholder {
    color: #9CA3AF;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 74, 122, 0.15);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 2.75rem;
}

.auth-input-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.auth-input-toggle:hover {
    color: var(--ink);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0 1.5rem;
    font-size: 0.9rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2);
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.btn-auth {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font: 600 0.95rem var(--sans);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-auth:hover {
    background: var(--primary-hover);
}

.btn-auth:focus-visible,
.auth-input-toggle:focus-visible,
.role-toggle a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.auth-alt {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-2);
}

.auth-alt a {
    font-weight: 600;
}

/* Notices */
.auth-notice {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-notice i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-notice.is-error {
    background: var(--danger-soft);
    border-color: #FECDCA;
    color: var(--danger);
}

.auth-notice.is-success {
    background: var(--success-soft);
    border-color: #ABEFC6;
    color: var(--success);
}

.auth-notice.is-success a {
    color: var(--success);
    font-weight: 600;
}

.auth-notice.is-info {
    background: var(--info-soft);
    border-color: #C9D6E5;
    color: var(--primary);
}

/* Role toggle */
.role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
}

.role-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 38px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
}

.role-toggle a:hover {
    color: var(--ink);
    text-decoration: none;
}

.role-toggle a.active {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .auth-aside {
        display: none;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .auth-topline {
        padding: 16px;
    }

    .auth-form-wrap {
        align-items: flex-start;
        padding: 16px 16px 40px;
    }

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

    .auth-heading {
        font-size: 1.5rem;
    }
}
