/* =============================================
   COLEGIO REGENTS, LOGIN CSS
   Colores: Amarillo #F5C300 | Negro #1A1A1A | Blanco #FFFFFF
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #F5C300;
    --yellow-dark: #D4A800;
    --yellow-light: #FFF3B0;
    --black: #1A1A1A;
    --black-soft: #2C2C2C;
    --white: #FFFFFF;
    --gray: #F4F4F4;
    --gray-text: #666666;
    --error: #E53935;
    --radius: 14px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background shapes ── */
.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--yellow);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    opacity: 0.05;
}

/* ── Card ── */
.login-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-container {
    width: 100%;
    max-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.login-logo-img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.system-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-text);
    letter-spacing: 0.2px;
}

/* ── Alert ── */
.alert-error {
    background: #FFEBEE;
    border-left: 4px solid var(--error);
    color: var(--error);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 15px;
}

/* ── Form ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black-soft);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #888888;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--black);
    background: var(--gray);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--yellow);
    background: var(--white);
}

.toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-text);
    padding: 0;
}

.toggle-pass:hover {
    color: var(--black);
}

/* ── Button ── */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 14px;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.btn-login:hover {
    background: var(--yellow-dark);
    box-shadow: 0 4px 16px rgba(245, 195, 0, 0.45);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ── Role badges ── */
.login-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: var(--yellow-light);
    color: #7A6200;
    border: 1px solid var(--yellow);
}

.badge-mant {
    background: #1A1A1A;
    color: #FFFFFF;
}

.badge-bib {
    background: #F4F4F4;
    color: #444;
    border: 1px solid #DDD;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card {
        margin: 16px;
        padding: 36px 24px 28px;
    }
}