/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE — Clean Institutional Design
   JRMSU Tampilisan Campus · Digital Voting System
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    /* Primary Colors */
    --primary-blue:     #1A237E;
    --primary-blue-light: #3949AB;
    --primary-red:      #D32F2F;
    --primary-red-light: #EF5350;
    
    /* Backgrounds */
    --bg-main:          #F8F9FA;
    --card-bg:          #FFFFFF;
    
    /* Text Colors */
    --text-dark:        #1a1f2e;
    --text-body:        #374151;
    --text-muted:       #6B7280;
    --text-light:       #9CA3AF;
    
    /* Borders & Inputs */
    --input-border:     #D1D5DB;
    --input-bg:         #F9FAFB;
    --border-light:     #E5E7EB;
    
    /* Shadows */
    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:        0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl:        0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

html, body { 
    width: 100%; 
    height: 100%; 
    min-height: 100vh; 
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}


/* ═══════════════════════════════════════
   SUBTLE BACKGROUND ELEMENTS
   Minimal faint outline circles
═══════════════════════════════════════ */

/* Remove all the old gradient orbs */
.orb-tl, .orb-br, .orb-tr, .orb-bl, .orb-c {
    display: none;
}

/* Subtle outline circles */
.glass-circle-1 {
    position: fixed;
    top: 80px;
    right: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 35, 126, 0.06);
    pointer-events: none;
    z-index: 0;
}

.glass-circle-2 {
    position: fixed;
    bottom: 100px;
    left: 8%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(211, 47, 47, 0.05);
    pointer-events: none;
    z-index: 0;
}

.glass-circle-3 {
    position: fixed;
    top: 40%;
    left: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 35, 126, 0.04);
    pointer-events: none;
    z-index: 0;
}

.glass-ring-1 {
    position: fixed;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 35, 126, 0.04);
    pointer-events: none;
    z-index: 0;
}

.glass-ring-2 {
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(211, 47, 47, 0.04);
    pointer-events: none;
    z-index: 0;
}

.glass-ring-3 {
    position: fixed;
    top: 60%;
    right: 8%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 35, 126, 0.05);
    pointer-events: none;
    z-index: 0;
}


/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    animation: riseUp 0.5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes riseUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


/* ═══════════════════════════════════════
   CARD — Clean White Surface
═══════════════════════════════════════ */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 36px 32px 28px;
    border: 1px solid var(--border-light);
}


/* ═══════════════════════════════════════
   LOGO BLOCK
═══════════════════════════════════════ */
.card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.card-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.card-logo-text {
    display: flex;
    flex-direction: column;
}

.card-logo-text .system-label {
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.card-logo-text .campus-label {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}


/* ═══════════════════════════════════════
   BICOLOR ACCENT BAR — Red/Blue Split
═══════════════════════════════════════ */
.card-accent {
    height: 4px;
    border-radius: 100px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%, 
        var(--primary-red) 50%, 
        var(--primary-blue) 50%, 
        var(--primary-blue) 100%
    );
}


/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.card-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

/* Remove gradient text effect, use solid blue */
.card-title span {
    color: var(--primary-blue);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}


/* ═══════════════════════════════════════
   ALERTS
═══════════════════════════════════════ */
.alert-custom {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-left: 4px solid;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.alert-custom i { 
    margin-top: 2px; 
    flex-shrink: 0; 
}

.alert-success { 
    background: #ECFDF5; 
    color: #065F46; 
    border-left-color: #10B981; 
}

.alert-danger { 
    background: #FEF2F2; 
    color: #991B1B; 
    border-left-color: var(--primary-red); 
}

.alert-warning { 
    background: #FFFBEB; 
    color: #92400E; 
    border-left-color: #F59E0B; 
}

.alert-warning ul { 
    margin: 6px 0 0 16px; 
}


/* ═══════════════════════════════════════
   INPUT FIELDS
═══════════════════════════════════════ */
.input-group { 
    position: relative; 
    margin-bottom: 18px; 
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrap { 
    position: relative; 
}

.input-wrap input {
    width: 100%;
    padding: 14px 46px 14px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-dark);
    background: var(--input-bg);
    outline: none;
    transition: all 0.2s ease;
}

.input-wrap input::placeholder {
    color: var(--text-light);
}

.input-wrap input:focus {
    border-color: var(--primary-blue);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.08);
}

.input-wrap .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrap .input-icon.clickable { 
    pointer-events: auto; 
    cursor: pointer; 
}

.input-wrap .input-icon.clickable:hover {
    color: var(--primary-blue);
}

.input-wrap input:focus ~ .input-icon { 
    color: var(--primary-blue); 
}


/* ═══════════════════════════════════════
   OPTIONS ROW
═══════════════════════════════════════ */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.remember-wrap { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
}

.remember-wrap input[type="checkbox"] { 
    width: 16px; 
    height: 16px; 
    accent-color: var(--primary-blue); 
    cursor: pointer; 
}

.remember-wrap span { 
    font-size: 13.5px; 
    color: var(--text-body); 
}

.forgot-link {
    font-size: 13.5px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-link:hover { 
    color: var(--primary-blue-light);
    text-decoration: underline;
}


/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */

/* Primary Action — Sign In (Red) */
.btn-signin {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--primary-red);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.25);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.btn-signin:hover {
    background: #B71C1C;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
    transform: translateY(-1px);
}

.btn-signin:active { 
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 14px;
}

.or-divider::before, 
.or-divider::after { 
    content: ''; 
    flex: 1; 
    height: 1px; 
    background: var(--border-light); 
}

.or-divider span { 
    font-size: 12px; 
    color: var(--text-light); 
    font-weight: 600; 
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Secondary Action — Register (Blue outline) */
.btn-register {
    width: 100%;
    padding: 13px 24px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--card-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-register:hover {
    background: rgba(26, 35, 126, 0.04);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.12);
    transform: translateY(-1px);
}

.btn-register:active {
    transform: translateY(0);
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.card-footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════
   RESPONSIVE — Tablets
═══════════════════════════════════════ */
@media (max-width: 480px) {
    body { 
        padding: 16px; 
    }
    
    .card { 
        padding: 28px 22px 22px; 
        border-radius: 16px; 
    }
    
    .card-logo img { 
        width: 50px; 
        height: 50px; 
    }
    
    .card-logo-text .campus-label {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .glass-circle-1 { 
        width: 180px; 
        height: 180px; 
        top: 40px; 
        right: 5%; 
    }
    
    .glass-circle-2 { 
        width: 120px; 
        height: 120px; 
        bottom: 60px; 
        left: 5%; 
    }
    
    .glass-circle-3 { 
        display: none; 
    }
    
    .glass-ring-3 {
        display: none;
    }
}


/* ═══════════════════════════════════════
   RESPONSIVE — Small Phones
═══════════════════════════════════════ */
@media (max-width: 360px) {
    .card { 
        padding: 22px 18px 18px; 
    }
    
    .card-logo {
        gap: 10px;
    }
    
    .card-logo img {
        width: 44px;
        height: 44px;
    }
    
    .card-logo-text .system-label {
        font-size: 9px;
    }
    
    .card-logo-text .campus-label { 
        font-size: 12px; 
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-subtitle {
        font-size: 13px;
    }
    
    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}