﻿.login-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: rtl;
}

.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 35%), radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.07), transparent 35%), #f5f7fb;
    direction: rtl;
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    padding: 30px 34px 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.login-logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.login-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.login-card h1 {
    margin: 0;
    text-align: center;
    color: #172033;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.login-subtitle {
    margin: 4px 0 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

    .login-form > label {
        margin-bottom: 6px;
        color: #334155;
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 700;
        font-size: 11px;
    }

.login-input {
    width: 100%;
    height: 44px;
    margin-bottom: 14px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    outline: none;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400;
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .login-input:focus {
        border-color: #2563eb;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    }

    .login-input::placeholder {
        color: #a0aec0;
    }

.remember-row {
    margin: 0 0 17px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
}

    .remember-label input {
        width: 15px;
        height: 15px;
        margin: 0;
        accent-color: #2563eb;
        cursor: pointer;
    }

.login-button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.20);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    }

    .login-button:active {
        transform: translateY(0);
    }

.login-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    text-align: center;
    color: #b0bac7;
    font-size: 9px;
}


.login-error {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    text-align: right;
}

.login-version {
    margin-right: 8px;
    opacity: .6;
    font-size: 12px;
}
@media (max-width: 500px) {

    .login-page {
        padding: 15px;
    }

    .login-card {
        max-width: 360px;
        padding: 25px 22px 18px;
        border-radius: 17px;
    }

    .login-logo {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .login-card h1 {
        font-size: 20px;
    }


}


/* =========================================================
   SCHOOL SELECTION
   ========================================================= */
.school-page {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    direction: rtl;
    box-sizing: border-box;
}

.school-card {
    width: min(100%, 470px);
    padding: 42px 38px 28px;
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    text-align: center;
}

/* Logo */

.school-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

/* Title */

.school-title {
    margin: 0;
    color: #172033;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.5;
}

.school-subtitle {
    margin: 8px 0 28px;
    color: #7b8494;
    font-size: 14px;
    line-height: 1.9;
}

/* School list */

.schools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    text-align: right;
}

/* Option */

.school-option {
    display: block;
    cursor: pointer;
    position: relative;
}

    .school-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.school-option-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid #e5e9ef;
    border-radius: 16px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Hover */

.school-option:hover .school-option-content {
    border-color: #b8c7e8;
    background: #fafcff;
    transform: translateY(-1px);
}

/* Selected */

.school-option input:checked + .school-option-content {
    border-color: #2563eb;
    background: #f5f8ff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
}

/* School icon */

.school-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eef4ff;
    color: #2563eb;
    transition: background 0.18s ease, color 0.18s ease;
}

.school-icon-building {
    font-size: 26px;
    font-weight: 700;
}

.school-option input:checked + .school-option-content
.school-icon {
    background: #2563eb;
    color: #ffffff;
}

/* Details */

.school-details {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-name {
    color: #202938;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
}

.school-role {
    color: #8a93a3;
    font-size: 12px;
}

/* Check */

.school-check {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #d9dee7;
    color: transparent;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.school-option input:checked + .school-option-content
.school-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Continue */

.school-continue {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .school-continue:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    }

    .school-continue:active {
        transform: translateY(0);
    }

    .school-continue:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.20);
        outline-offset: 3px;
    }

.school-arrow {
    font-size: 18px;
}

/* Empty state */

.school-empty {
    padding: 20px 0 10px;
    color: #7b8494;
    font-size: 14px;
}

.school-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4e5;
    color: #d97706;
    font-size: 20px;
    font-weight: 800;
}

.school-empty p {
    margin: 0 0 14px;
}

.school-empty a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

    .school-empty a:hover {
        text-decoration: underline;
    }

/* Footer */

.school-footer {
    margin-top: 26px;
    color: #a0a7b3;
    font-size: 11px;
}

/* Mobile */

@media (max-width: 520px) {

    .school-page {
        padding: 16px;
    }

    .school-card {
        padding: 34px 22px 24px;
        border-radius: 20px;
    }

    .school-title {
        font-size: 22px;
    }

    .school-subtitle {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .school-option-content {
        min-height: 70px;
        padding: 10px 11px;
    }

    .school-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .school-name {
        font-size: 13px;
    }
}



