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

:root {
    --dark: #020431;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text: #20242b;
    --muted: #8a919d;
    --border: #e2e5e9;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: var(--text);
}

button,
input,
select {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =========================
   PAGE
========================= */

.auth-page {
    min-height: 100vh;
    display: flex;
}


/* =========================
   LEFT
========================= */

.auth-left {
    width: 43%;
    min-height: 100vh;

    position: relative;

    background: #020431;
    color: #fff;

    padding: 32px 45px;

    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 19px;
    font-weight: 700;
}

.brand-icon {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: rgba(255,255,255,.10);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 16px;
}

.auth-left-content {
    margin: auto 0;
    max-width: 440px;
}

.left-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,.08);

    color: #bfc5ff;

    font-size: 20px;

    margin-bottom: 22px;
}

.auth-left-content h2 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.5px;

    margin-bottom: 17px;
}

.auth-left-content p {
    max-width: 390px;

    color: rgba(255,255,255,.58);

    font-size: 14px;
    line-height: 1.7;
}

.auth-left-footer {
    color: rgba(255,255,255,.30);
    font-size: 11px;
}


/* =========================
   RIGHT
========================= */

.auth-right {
    flex: 1;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.auth-card {
    width: 390px;
}

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

.auth-heading h1 {
    font-size: 25px;
    line-height: 1.25;

    margin-bottom: 8px;

    color: #20242b;
}

.auth-heading p {
    color: #8b929d;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   MOBILE LOGO
========================= */

.mobile-logo {
    display: none;
}


/* =========================
   FORM
========================= */

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

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #444b55;

    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i:first-child {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #969da7;

    font-size: 13px;

    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 45px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #fff;

    padding: 0 40px;

    color: #30363f;
    font-size: 13px;

    outline: none;

    transition: .15s;
}

.input-wrapper input::placeholder {
    color: #b0b5bd;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #7770e8;

    box-shadow:
        0 0 0 3px rgba(79,70,229,.08);
}


/* =========================
   PASSWORD
========================= */

.password-toggle {
    position: absolute;

    right: 4px;
    top: 4px;

    width: 37px;
    height: 37px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #9aa1ab;

    cursor: pointer;
}

.password-toggle:hover {
    background: #f5f6f7;
    color: #555d68;
}


/* =========================
   OPTIONS
========================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 2px 0 21px;

    font-size: 11px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #737b86;

    cursor: pointer;
}

.remember input {
    width: 14px;
    height: 14px;

    accent-color: var(--primary);
}

.form-options a {
    color: var(--primary);
}

.form-options a:hover {
    text-decoration: underline;
}


/* =========================
   BUTTON
========================= */

.auth-button {
    width: 100%;
    height: 45px;

    border: 0;
    border-radius: 8px;

    background: var(--primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: .15s;
}

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

.auth-button i {
    font-size: 11px;
}


/* =========================
   AUTH BUTTONS
========================= */

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.auth-buttons .auth-button,
.auth-buttons .attendance-button {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.auth-buttons .auth-button {
    border: 0;
    background: var(--primary);
    color: #fff;
}

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

.auth-buttons .attendance-button {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
}

.auth-buttons .attendance-button:hover {
    background: #f0f1fa;
}

.auth-buttons button i {
    font-size: 11px;
}



/* =========================
   DEPARTMENT
========================= */
.department-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.department-option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 68px;
    padding: 10px 12px;

    border: 1px solid #e1e4e8;
    border-radius: 9px;

    background: #fff;

    cursor: pointer;
    transition: .15s;
}

.department-option:hover {
    border-color: #cdd1dc;
    background: #fafaff;
}

.department-option input {
    display: none;
}


/* Radio */

.department-radio {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    border: 1.5px solid #d0d4da;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .15s;
}

.department-radio span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: transparent;

    transition: .15s;
}


/* Tanlangan bo'lim */

.department-option:has(input:checked) {
    border-color: #6366f1;
    background: #f7f7ff;
}

.department-option:has(input:checked) .department-radio {
    border-color: #4f46e5;
}

.department-option:has(input:checked) .department-radio span {
    background: #4f46e5;
}


/* Icon */

.department-option-icon {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--dark);
    color: #4f46e5;

    font-size: 14px;
    padding: 2px;
}

.department-option-icon img {
    width: 100%;
}


/* Matn */

.department-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.department-option-info strong {
    color: #30353d;
    font-size: 13px;
    font-weight: 600;
}

.department-option-info small {
    color: #9299a5;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .auth-left {
        display: none;
    }

    .auth-right {
        min-height: 100vh;
        padding: 25px;
    }

    .auth-card {
        width: 100%;
        max-width: 390px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 9px;

        margin-bottom: 45px;

        font-size: 18px;
        font-weight: 700;
    }

    .mobile-logo .brand-icon {
        background: #eef2ff;
        color: var(--primary);
    }

}

@media (max-width: 450px) {

    .auth-right {
        padding: 20px;
    }

    .auth-heading h1 {
        font-size: 23px;
    }

}


.attendance-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 55px;
    padding: 16px 24px;

    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s ease;
}

.attendance-button:hover {
    background: #1d4ed8;
}