/* ============================================================
   LOGIN.CSS — HIGH-END VIP AUTHENTICATION
   ============================================================ */

:root {
    --brand-gold: #c5a059;
    --brand-cyan: #00e5ff;
    --bg-dark: #050505;
    --card-bg: rgba(15, 15, 15, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --error-color: #ff3b30;
    --success-color: #30d158;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.login-body {
    background-color: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* === BACKGROUND EFFECTS === */
.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-image: url('../imajenes/carusel4.jpg');
    background-size: cover;
    background-position: center;
}

.login-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8), rgba(0,0,0,0.95));
    backdrop-filter: blur(10px);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--brand-gold);
    top: -100px;
    left: -100px;
    animation: drift 10s infinite alternate ease-in-out;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--brand-cyan);
    bottom: -50px;
    right: -100px;
    animation: drift 12s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* === CLOSE BUTTON === */
.close-login {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, background 0.2s;
}

.close-login:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* === MAIN CONTAINER === */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === BRAND HEADER === */
.login-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: auto;
}

.brand-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--brand-gold);
    padding: 3px;
    /* Sombras eliminadas para colores más limpios */
}

.brand-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.login-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.login-header p {
    font-size: 0.85rem;
    color: var(--brand-gold);
    letter-spacing: 4px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* === LOGIN CONTENT (No Box) === */
.login-content {
    width: 100%;
    padding: 0 10px;
    margin-bottom: auto;
}

/* Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-tab {
    background: transparent;
    border: none;
    color: #666;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: #fff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gold);
    /* Sombra eliminada para mayor limpieza */
}

/* Forms Animation Container */
.forms-container {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-form.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.auth-form.slide-left {
    transform: translateX(-50px);
}

.auth-form.slide-right {
    transform: translateX(50px);
}

.auth-form.right-standby {
    transform: translateX(50px);
}

/* Inputs Minimalistas */
.input-line {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 5px 0;
    transition: border-color 0.3s;
}

.input-line:focus-within {
    border-color: var(--brand-gold);
}

.input-line i:first-child {
    color: #fff;
    font-size: 1.1rem;
    width: 30px;
    opacity: 0.7;
}

.input-line input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    font-size: 1rem;
    outline: none;
}

.input-line input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Fix para mantener el fondo 100% transparente al autocompletar/pegar */
.input-line input:-webkit-autofill,
.input-line input:-webkit-autofill:hover, 
.input-line input:-webkit-autofill:focus, 
.input-line input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.toggle-password {
    color: #888;
    cursor: pointer;
    padding: 10px;
}

/* === PASSWORD VALIDATION LOGIC === */
.validate-group {
    transition: border-color 0.3s;
}

.validation-icon {
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

/* Estado Invalido (Rojo) */
.validate-group.invalid {
    border-color: var(--error-color);
}
.validate-group.invalid .validation-icon {
    color: var(--error-color);
}

/* Estado Valido (Verde) */
.validate-group.valid {
    border-color: var(--success-color);
}
.validate-group.valid .validation-icon {
    color: var(--success-color);
    transform: scale(1.1);
}

.password-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: -12px;
    margin-bottom: 15px;
    padding-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.validate-group.invalid + .password-hint {
    opacity: 1;
}

/* === BUTTONS === */
.auth-btn {
    width: 100%;
    background: var(--brand-gold);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 30px; /* Botones más redondeados y elegantes */
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, background-color 0.2s;
    /* Sombras eliminadas */
}

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

.auth-btn:hover {
    background: #d4b472; /* Color ligeramente más claro en hover */
}

.btn-register {
    background: var(--brand-cyan);
}

.btn-register:hover {
    background: #33eeff;
}

.forgot-password {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 25px;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.forgot-password:hover {
    color: #fff;
}
