/* Student ID: login switch, success dialog, profile chip */

/* ---- Student / Admin / Candidacy switch on the login card ---- */
.login-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    margin-bottom: 1.1rem;
    background: rgba(119, 0, 0, 0.07);
    border-radius: 14px;
}
.login-switch .ls-btn {
    border: 0;
    background: transparent;
    color: #770000;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.6rem 0.2rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.login-switch .ls-btn i { font-size: 1.15rem; }
.login-switch .ls-btn:hover { background: rgba(255, 193, 7, 0.22); }
.login-switch .ls-btn.active {
    background: linear-gradient(135deg, #ffa726, #ffc107);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.45);
}

/* ---- Registration success dialog ---- */
.sid-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}
.sid-box {
    width: 100%;
    max-width: 380px;
    background: #fffaf5;
    border-radius: 18px;
    border-top: 5px solid #ffb300;
    padding: 1.6rem 1.4rem 1.4rem;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    animation: sidPop .25s ease;
}
@keyframes sidPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sid-check { font-size: 2.6rem; color: #2e7d32; line-height: 1; }
.sid-box h3 { margin: .6rem 0 .2rem; color: #770000; font-size: 1.25rem; }
.sid-sub { color: #777; font-size: .9rem; margin: .2rem 0 .6rem; }
.sid-number {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #770000;
    background: #fff4d6;
    border: 2px dashed #ffb300;
    border-radius: 12px;
    padding: .55rem 1rem;
    user-select: all;
}
.sid-copy {
    display: block;
    margin: .7rem auto 0;
    border: 0;
    background: transparent;
    color: #a07a1c;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}
.sid-copy:hover { color: #770000; }
.sid-note { margin: .9rem 0 1rem; font-size: .8rem; color: #8a5a00; background: #fff8e1; border-radius: 8px; padding: .5rem .7rem; text-align: left; }
.sid-ok {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #ffa726, #ffc107);
}
.sid-ok:hover { filter: brightness(1.05); }

/* standalone register page */
.sid-inline { text-align: center; margin: 1rem 0; }

/* ---- Student ID chip on the voter profile ---- */
.student-id-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 auto 1rem;
    padding: .55rem 1rem;
    max-width: 320px;
    border-radius: 999px;
    background: #fff4d6;
    border: 1px solid #ffd980;
    color: #770000;
    font-size: .9rem;
}
.student-id-chip i { color: #ffa726; }
.student-id-chip span { color: #8a6d1c; font-weight: 600; }
.student-id-chip strong { font-family: "Courier New", monospace; letter-spacing: .06em; }
