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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* ── LAYOUT ── */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ── LEFT PANEL ── */
.left-panel {
    flex: 0 0 55%;
    background: linear-gradient(135deg, #020d1f 0%, #0a1e3d 40%, #0d2a52 70%, #091829 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* animated dots */
.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.5;
}

.left-content {
    position: relative;
    z-index: 2;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

/* ── BRANDING ROW ── */
.top-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding-left: 24px;
}

.logo-large {
    height: 95px;
    width: auto;
    max-width: 46%;
    object-fit: contain;
}

.mda-text, .eilat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mda-name {
    font-size: 13px;
    font-weight: 800;
    color: #e63946;
    letter-spacing: 1.5px;
    line-height: 1;
}

.mda-sub {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
}

.mda-anniversary {
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.5px;
}

.mda-anniversary sup {
    font-size: 8px;
}

.brand-divider {
    width: 1px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.eilat-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

.eilat-tagline {
    font-size: 12px;
    font-style: italic;
    color: #d4af37;
    font-weight: 500;
}

/* ── HERO ── */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 32px;
}

.student-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1.5px solid transparent;
    border-radius: 20px;
    /* Translucent blue→crimson fill (padding-box) with a solid blue→crimson gradient border (border-box) */
    background:
        linear-gradient(135deg, rgba(26,74,138,0.30) 0%, rgba(185,28,92,0.30) 100%) padding-box,
        linear-gradient(135deg, #1a4a8a 0%, #b91c5c 100%) border-box;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.22);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 20px;
    font-weight: 500;
    color: #4a90d9;
    letter-spacing: 1.5px;
}

/* ── RIGHT PANEL ── */
.right-panel {
    flex: 0 0 45%;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow-y: auto;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── CARD HEADER ── */
.card-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0d1b3e;
    margin-bottom: 6px;
}

.card-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── ALERT ── */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ── FORM ── */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group { width: 100%; }

.input-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 14px;
    height: 52px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    gap: 10px;
}

.input-row:focus-within {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.field-icon {
    display: flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.field-icon svg {
    width: 18px;
    height: 18px;
}

.input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: transparent;
}

.input-row input::placeholder { color: #9ca3af; }

.pw-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #9ca3af;
    transition: color 0.2s;
    flex-shrink: 0;
}

.pw-toggle:hover { color: #4a90d9; }

.pw-toggle svg {
    width: 18px;
    height: 18px;
}

/* ── FORM OPTIONS ── */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    user-select: none;
}

.remember-label input[type="checkbox"] { display: none; }

.custom-check {
    width: 17px;
    height: 17px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remember-label input:checked + .custom-check {
    background: #4a90d9;
    border-color: #4a90d9;
}

.remember-label input:checked + .custom-check::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #4a90d9;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover { color: #2563eb; }

/* ── SIGN IN BUTTON ── */
.btn-signin {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1a4a8a 0%, #b91c5c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.btn-signin:hover { opacity: 0.9; }
.btn-signin:active { transform: scale(0.99); }
.btn-signin:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-signin svg {
    width: 18px;
    height: 18px;
}

/* ── SECURE BADGE ── */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.secure-badge svg {
    width: 22px;
    height: 22px;
    color: #4a90d9;
    flex-shrink: 0;
}

.secure-badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.secure-badge strong {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.secure-badge span {
    font-size: 12px;
    color: #6b7280;
}

/* ── FOOTER ── */
.card-footer {
    font-size: 11.5px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-box svg {
    width: 48px;
    height: 48px;
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.modal-box p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.btn-modal-close {
    margin-top: 8px;
    padding: 10px 32px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-modal-close:hover { opacity: 0.85; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body { overflow-y: auto; height: auto; }
    .login-wrapper { flex-direction: column; height: auto; min-height: 100vh; }
    .left-panel { flex: 0 0 auto; padding: 28px 20px; justify-content: flex-start; }
    .left-content { padding: 0; gap: 24px; width: 100%; }
    .top-branding { gap: 16px; overflow: hidden; }
    .logo-large { height: 72px; max-width: 44%; }
    .brand-divider { height: 50px; }
    .hero-title { font-size: 26px; letter-spacing: 0; }
    .hero-sub { font-size: 15px; letter-spacing: 0.5px; }
    .right-panel { flex: 0 0 auto; padding: 24px 16px 40px; }
    .login-card { padding: 32px 24px; border-radius: 16px; max-width: 100%; }
}
