/* ==========================================================================
   CANCLAIM OS - SECURE GATEWAY (LOGIN)
   Archivo: login.css
   Descripción: Estilos aislados para la interfaz de autenticación.
   ========================================================================== */

:root {
    --navy-dark: #0B172A;
    --navy: #122543;
    --red-canclaim: #E32A26;
    --gold: #D4AF37;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-bg: rgba(18, 37, 67, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-dark);
    background-image: radial-gradient(circle at 50% 0%, var(--navy) 0%, var(--navy-dark) 80%);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Decoraciones de Fondo */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    width: 400px; height: 400px;
    background: var(--navy);
    top: -100px; left: -100px;
}

.shape-2 {
    width: 300px; height: 300px;
    background: rgba(227, 42, 38, 0.15); /* Rojo sutil */
    bottom: -50px; right: -50px;
}

/* Tarjeta Principal (Glassmorphism) */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #FFF;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Caja de Error */
.error-box {
    background: rgba(227, 42, 38, 0.15);
    border: 1px solid rgba(227, 42, 38, 0.3);
    color: #FCA5A5;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Formulario */
.luxury-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field-wrapper {
    position: relative;
}

.input-field-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.input-field-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-field-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-field-wrapper input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--red-canclaim);
    box-shadow: 0 0 0 3px rgba(227, 42, 38, 0.15);
}

.input-field-wrapper input:focus + i {
    color: var(--red-canclaim);
}

/* Botón de Acceso */
.btn-login {
    background: var(--red-canclaim);
    color: #FFF;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-login:hover {
    background: #C5221F;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 42, 38, 0.3);
}

.btn-login:disabled {
    background: #52525B;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enlaces Extra */
.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.back-link:hover {
    color: #FFF;
}

.system-watermark {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 480px) {
    .login-card {
        margin: 20px;
        padding: 30px 20px;
    }
}