* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background-color: #f0f8f8;
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, #ffffff 0px, #f0f7f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #1e293b;
}
.auth-container { width: 100%; max-width: 530px; }
.card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 45px -10px rgba(13, 148, 136, 0.09), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.75rem 2rem 1.5rem 2rem;
    position: relative;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}
.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: #e6f7f5;
    color: #0f766e;
    border: 1px solid #bbf0ea;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.support-btn:hover { background-color: #ccfbf1; transform: translateY(-1px); }
.guide-links {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    cursor: pointer;
}
.guide-links:hover { color: #0f766e; }
.logo-section { text-align: center; margin-bottom: 1.25rem; }
.emblem-wrapper {
    width: 96px; height: 96px;
    margin: 0 auto 0.75rem auto;
    display: flex; align-items: center; justify-content: center;
}
.office-title { font-size: 0.92rem; color: #334155; font-weight: 600; line-height: 1.3; }
.office-subtitle { font-size: 0.76rem; color: #64748b; font-family: sans-serif; letter-spacing: 0.3px; }
.system-title { text-align: center; margin-top: 1rem; margin-bottom: 0.35rem; }
.form-view { display: none; animation: fadeIn 0.25s ease-in-out; }
.form-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.75rem;
}
.form-header h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.back-btn {
    background: none; border: none; color: #64748b; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: 8px;
}
.back-btn:hover { color: #0f766e; background: #f1f5f9; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; color: #334155; margin-bottom: 0.4rem; }
.input-wrapper input {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #cbd5e1; border-radius: 12px;
    font-size: 0.95rem; outline: none; background: #f8fafc;
}
.input-wrapper input:focus { border-color: #0d9488; background: #ffffff; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15); }
.submit-btn {
    width: 100%; padding: 0.85rem; background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff; border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 15px -3px rgba(13, 148, 136, 0.4); transition: all 0.2s;
}
.submit-btn:hover { background: linear-gradient(135deg, #0f766e 0%, #115e59 100%); transform: translateY(-1px); }
.quick-tests { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #e2e8f0; font-size: 0.8rem; }
.quick-tests-label { font-weight: 600; margin-bottom: 0.5rem; color: #475569; }
.quick-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quick-btn {
    background: #f1f5f9; color: #334155; padding: 0.35rem 0.65rem; border-radius: 8px;
    text-decoration: none; font-size: 0.76rem; border: 1px solid #cbd5e1; transition: all 0.15s;
}
.quick-btn:hover { background: #e2e8f0; color: #0f172a; }
.alert-error {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
    padding: 0.65rem 0.9rem; border-radius: 10px; font-size: 0.82rem; margin-bottom: 1rem;
}
.admin-link-bar { text-align: center; margin-top: 1.5rem; font-size: 0.82rem; }
.admin-link-bar a {
    color: #0f766e; text-decoration: none; font-weight: 600; display: inline-flex;
    align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem; border-radius: 8px;
    background: rgba(13, 148, 136, 0.08); transition: all 0.2s;
}
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); z-index: 100;
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-card {
    background: #ffffff; border-radius: 20px; max-width: 460px; width: 100%;
    padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); position: relative;
}
.modal-close { position: absolute; top: 1rem; left: 1rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #94a3b8; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.system-title h1 { font-size: 1.45rem; font-weight: 800; color: #0f172a; }
.system-subtitle { text-align: center; font-size: 0.86rem; color: #334155; font-weight: 500; margin-bottom: 1.5rem; }
.select-prompt { text-align: center; font-size: 0.85rem; color: #64748b; margin-bottom: 1.25rem; font-weight: 500; }
.selection-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.option-card {
    display: flex; align-items: center; justify-content: space-between;
    background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 18px;
    padding: 0.9rem 1.15rem; cursor: pointer; text-decoration: none; transition: all 0.25s ease;
}
.option-card:hover {
    border-color: #0d9488;
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.16);
    transform: translateY(-2px);
}
.option-right { display: flex; align-items: center; gap: 1rem; }
.option-icon-box {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.student-icon-box { background-color: #e0f2fe; color: #0284c7; }
.staff-icon-box { background-color: #f3e8ff; color: #7e22ce; }
.option-text h3 { font-size: 1.02rem; font-weight: 700; color: #0f172a; margin-bottom: 0.2rem; }
.option-text p { font-size: 0.8rem; color: #64748b; }
.option-arrow { color: #94a3b8; font-size: 1.15rem; display: flex; align-items: center; transition: all 0.2s; }
.option-card:hover .option-arrow { color: #0d9488; transform: translateX(-4px); }
.version-tag { text-align: center; font-size: 0.74rem; color: #94a3b8; margin-top: 0.75rem; }
