/* ===================================
   LOGIN PAGE - Estilo Airbnb
   =================================== */

:root {
    --primary-color: #FF385C;
    --primary-dark: #E31C5F;
    --primary-light: #FF5A79;
    --text-primary: #222222;
    --text-secondary: #717171;
    --bg-white: #FFFFFF;
    --bg-gray: #F7F7F7;
    --border-color: #EBEBEB;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF5F5 50%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */

.login-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

/* ===================================
   SECCIÓN IZQUIERDA (BRANDING)
   =================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition);
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.branding {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.logo-large {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.logo-large i {
    font-size: 40px;
    color: white;
}

.branding h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.branding p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
}

.feature-item i {
    font-size: 24px;
    opacity: 0.9;
}

/* ===================================
   SECCIÓN DERECHA (FORMULARIO)
   =================================== */

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
}

.login-card {
    width: 100%;
    max-width: 420px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.login-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   ALERTAS
   =================================== */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #FFE6E6;
    color: #C81E1E;
    border: 1px solid #FFB3B3;
}

.alert-success {
    background-color: #E6F7F5;
    color: #00695C;
    border: 1px solid #99DDD6;
}

.alert i {
    font-size: 18px;
}

/* ===================================
   FORMULARIO
   =================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 16px;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* ===================================
   OPCIONES DEL FORMULARIO
   =================================== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-password {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   BOTÓN DE LOGIN
   =================================== */

.btn-login {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 56, 92, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    transition: var(--transition);
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* ===================================
   FOOTER CON CRÉDITOS
   =================================== */

.footer-credits {
    margin-top: 40px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-credits p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-credits a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.footer-credits a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 968px) {
    .login-left {
        display: none;
    }
    
    .login-container {
        max-width: 500px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .login-container {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 26px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}