/* =============================================================================
   PRIXMA TELEMETRIK · GlobalFocus Portal · login.css
   Estilos para login.php y setup-password.php
   Autocontenido (no requiere Bootstrap todavía en sub-fase 3A)
   ============================================================================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------------
   Layout principal
   --------------------------------------------------------------------------- */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top, rgba(34, 211, 238, 0.10), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(14, 116, 144, 0.10), transparent 50%),
        #0f172a;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------------------
   Branding
   --------------------------------------------------------------------------- */
.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
    color: white;
    font-weight: 700;
    font-size: 22px;
    line-height: 56px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.brand h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: #f1f5f9;
}

.brand .subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

/* ---------------------------------------------------------------------------
   Formulario
   --------------------------------------------------------------------------- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.field input::placeholder {
    color: #64748b;
}

/* ---------------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------------- */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.05s, opacity 0.15s;
    margin-top: 8px;
    text-decoration: none;
    text-align: center;
    display: block;
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary.as-link {
    display: block;
    margin-top: 16px;
}

/* ---------------------------------------------------------------------------
   Alertas
   --------------------------------------------------------------------------- */
.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

/* ---------------------------------------------------------------------------
   Texto auxiliar
   --------------------------------------------------------------------------- */
.hint {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 18px;
    margin-top: -6px;
}

.text-muted {
    color: #94a3b8;
    font-size: 13px;
}

.policy {
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 18px;
    padding-left: 20px;
}

.policy li {
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer-info {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: #64748b;
}

.footer-info span {
    margin: 0 4px;
}
