/* ===== RESET PRINCIPAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #eef2ef;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== CONTENEDOR DE LA TARJETA ===== */
.login-page {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

/* ===== CABECERA VERDE ===== */
.login-header {
    background: linear-gradient(180deg, #166534, #14532d);
    color: white;
    text-align: center;
    padding: 45px 35px;
}

.login-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-header p {
    font-size: 15px;
    opacity: .95;
    line-height: 1.4;
}

/* ===== CUERPO DEL FORMULARIO ===== */
.login-body {
    padding: 35px;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f3f4f6;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

.input-group input:focus {
    background: #e5e7eb;
}

/* ===== BOTÓN ===== */
.login-btn {
    width: 100%;
    background: #166534;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #14532d;
}

.secondary-link {
    display: block;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
    margin-top: 16px;
    text-align: center;
    text-decoration: none;
}

.secondary-link:hover {
    color: #14532d;
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-group select {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f3f4f6;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

.roles {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    text-align: center;
}

.roles span {
    flex: 1;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 10px 8px;
}

@media(max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .roles {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
