/* ===================================
   RESET Y VARIABLES
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta "Amour Premium" - Psicología de la elegancia y romance */
    --valentine-primary: #ff2d55;     /* Rosa vibrante moderno */
    --valentine-secondary: #8e2de2;   /* Púrpura real para profundidad */
    --valentine-accent: #ffb7c5;      /* Rosa pastel suave */
    --valentine-gold: #d4af37;         /* Dorado para detalles de lujo */
    --valentine-cream: #fff5f7;       /* Fondo suave no blanco puro */
    --valentine-dark: #2d0a13;         /* Contraste profundo para texto */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --shadow-premium: 0 15px 35px rgba(255, 45, 85, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--valentine-dark);
    background: var(--valentine-cream);
}

/* ===================================
   PÁGINAS DE AUTENTICACIÓN MEJORADAS
   =================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2d55 0%, #8e2de2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    animation: rotateBg 100s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

.auth-header h1 {
    font-size: 2rem;
    color: var(--valentine-pink);
    margin-bottom: 10px;
}

.auth-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===================================
   FORMULARIOS
=================================== */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--valentine-pink);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* ===================================
   BOTONES
=================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--valentine-pink), var(--valentine-red));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-block {
    width: 100%;
}

.btn-upload {
    background: linear-gradient(135deg, var(--valentine-pink), var(--valentine-red));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

/* ===================================
   ALERTAS
=================================== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===================================
   FOOTER DE AUTH
=================================== */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--valentine-pink);
    text-decoration: none;
    font-weight: 600;
}

/* ===================================
   BOTONES PREMIUM
   =================================== */
.btn {
    padding: 14px 28px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--valentine-primary), #ff5e7e);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 45, 85, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 45, 85, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--valentine-primary);
    border: 2px solid var(--valentine-primary);
}

.btn-secondary:hover {
    background: var(--valentine-cream);
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .collage-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* ===================================
   MODALES RESPONSIVOS
   =================================== */
.modal-content {
    width: 95%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 24px;
    padding: 30px;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        margin: 10px auto;
    }
    
    .auth-card {
        padding: 25px;
    }
}

/* ===================================
   CORAZONES FLOTANTES (DECORACIÓN)
=================================== */
.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 30px;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.floating-heart:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 80%;
    top: 60%;
    animation-delay: 5s;
}

.floating-heart:nth-child(3) {
    left: 50%;
    top: 80%;
    animation-delay: 10s;
}

.floating-heart::before {
    content: '💖';
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===================================
   TOAST NOTIFICATIONS
=================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

/* ===================================
   LOADING SPINNER
=================================== */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--valentine-light);
    border-top-color: var(--valentine-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE - MOBILE
=================================== */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}
