/* assets/css/auth.css - Estilo Siebel CRM (izzi Telecom) Limpio y Sencillo */
:root {
    --siebel-blue-dark: #0b1f2e;
    --siebel-blue-base: #133954;
    --siebel-blue-header: #0f283d;
    --siebel-blue-accent: #0284c7;
    --siebel-blue-hover: #0369a1;

    --izzi-pink: #e4007c;
    --izzi-pink-hover: #c9006c;

    --bg-page: #edf2f7;
    --surface-card: #ffffff;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --status-success: #16a34a;
    --status-success-bg: #f0fdf4;
    --status-success-border: #86efac;

    --status-danger: #dc2626;
    --status-danger-bg: #fef2f2;
    --status-danger-border: #fca5a5;

    --status-warning: #d97706;
    --status-warning-bg: #fffbeb;
    --status-warning-border: #fcd34d;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --shadow-card: 0 4px 16px rgba(15, 40, 61, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-page {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(228, 0, 124, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #e2e8f0 0%, #edf2f7 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra superior clásica Siebel */
.siebel-login-topbar {
    background-color: var(--siebel-blue-header);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-izzi-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.topbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
}

.topbar-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.topbar-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}

.topbar-security-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #86efac;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(134, 239, 172, 0.4);
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 600;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

/* Contenedor central del Login */
.auth-main-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Cabecera del cuadro de login estilo Siebel Open UI */
.auth-card-header {
    background: linear-gradient(180deg, #133954 0%, #0f283d 100%);
    padding: 22px 24px;
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid var(--izzi-pink);
}

.auth-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.auth-oracle-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.auth-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.auth-card-sub {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}

/* Cuerpo del formulario */
.auth-card-body {
    padding: 28px 24px;
}

/* Alertas de seguridad */
.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-alert.danger {
    background: var(--status-danger-bg);
    border: 1px solid var(--status-danger-border);
    color: var(--status-danger);
}

.auth-alert.warning {
    background: var(--status-warning-bg);
    border: 1px solid var(--status-warning-border);
    color: var(--status-warning);
}

.auth-alert.success {
    background: var(--status-success-bg);
    border: 1px solid var(--status-success-border);
    color: var(--status-success);
}

.auth-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Campos de Formulario Siebel */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--siebel-blue-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Botón de Login Siebel */
.btn-siebel-submit {
    width: 100%;
    background: var(--siebel-blue-base);
    color: #ffffff;
    border: 1px solid var(--siebel-blue-dark);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-siebel-submit:hover {
    background: var(--siebel-blue-hover);
}

.btn-siebel-submit:active {
    background: var(--siebel-blue-dark);
}

/* Reglas de Sesión y Pie de Formulario */
.auth-rules-box {
    margin-top: 20px;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
}

.auth-rules-box strong {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: var(--text-muted);
    background: #ffffff;
    border-top: 1px solid var(--border-light);
}
