/* ==========================================================================
   SIRF — Login Stylesheet
   Cumple con la Regla de Oro #1: Cero CSS inline en HTML
   ========================================================================== */

.login-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #151d30;
    border: 1px solid #24324f;
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0b0f19;
    border: 1px solid #24324f;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-submit {
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Demo Quick Selector */
.demo-box {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.demo-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-pass-hint {
    color: #60a5fa;
    font-size: 0.75rem;
}

.demo-select-wrapper {
    margin-bottom: 0.9rem;
}

.demo-select-label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.demo-select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #f1f5f9;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.demo-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.demo-select optgroup {
    background: #1e293b;
    color: #60a5fa;
    font-weight: 700;
}

.demo-select option {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.3rem;
}

.demo-buttons-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.5rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.demo-btn {
    background: #1c2742;
    border: 1px solid #2d3e63;
    color: #cbd5e1;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.demo-btn-span2 {
    grid-column: span 2;
}

.demo-btn small {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 2px;
}

.demo-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #3b82f6;
}

.demo-btn:hover small {
    color: #e2e8f0;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #64748b;
}
