/* Register CSS - Estilo festivo para "De Fiesta en Fiesta" */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #FFD166;
    --accent-color: #06D6A0;
    --tertiary-color: #83E85C;
    --coral-color: #EE6C4D;
    --text-dark: #4A4A4A;
    --text-light: #333333;
    --bg-light: #F2F2F2;
    --bg-white: #FFFFFF;
    --bg-secondary: #E0E0E0;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --error-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
}

/* Body y Layout General */
body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/><circle cx="20" cy="60" r="0.8" fill="white" opacity="0.06"/><circle cx="80" cy="30" r="0.7" fill="white" opacity="0.07"/><circle cx="30" cy="80" r="1.2" fill="white" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    z-index: 1;
    pointer-events: none;
}

/* Elementos flotantes decorativos - más variados para registro */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 8%;
    background: rgba(255, 255, 255, 0.08);
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 15%;
    background: rgba(255, 255, 255, 0.06);
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 85%;
    right: 25%;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: 4s;
}

.floating-circle:nth-child(4) {
    width: 140px;
    height: 140px;
    top: 5%;
    left: 5%;
    background: rgba(255, 255, 255, 0.05);
    animation-delay: 1s;
}

.floating-circle:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 75%;
    left: 12%;
    background: rgba(255, 255, 255, 0.09);
    animation-delay: 3s;
}

.floating-circle:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 3%;
    background: rgba(255, 255, 255, 0.07);
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(120deg); }
    66% { transform: translateY(-25px) rotate(240deg); }
}

/* Container Principal */
.register-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Tarjeta de Registro */
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.register-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--tertiary-color), var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.12;
}

/* Header del Registro */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    animation: gentle-bounce 4s ease-in-out infinite;
}

.register-logo i {
    font-size: 2.2rem;
    color: white;
}

@keyframes gentle-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(5deg); }
    50% { transform: scale(1.1) rotate(0deg); }
    75% { transform: scale(1.05) rotate(-5deg); }
}

.register-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Form Styles */
.register-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-dark);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

/* Checkbox Personalizado */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Validation States */
.form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.is-warning {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.invalid-feedback, .valid-feedback, .warning-feedback {
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invalid-feedback {
    color: var(--error-color);
}

.valid-feedback {
    color: var(--success-color);
}

.warning-feedback {
    color: var(--warning-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.strength-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    background: var(--error-color);
    width: 25%;
}

.strength-fill.medium {
    background: var(--warning-color);
    width: 60%;
}

.strength-fill.strong {
    background: var(--success-color);
    width: 100%;
}

.strength-requirements {
    font-size: 0.8rem;
    color: var(--text-light);
}

.strength-requirements li {
    margin-bottom: 2px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.strength-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
}

.strength-requirements li.valid::before {
    content: '✓';
    color: var(--success-color);
}

/* Button Styles */
.btn-register {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.btn-register:hover::before {
    left: 100%;
}

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

.btn-register:focus {
    outline: 3px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

/* Loading state */
.btn-register.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-register.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Links */
.register-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Back to Home */
.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Progress Steps (opcional) */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step.completed {
    background: var(--success-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-card {
        padding: 40px 30px;
        margin: 20px;
        max-width: 100%;
    }

    .register-title {
        font-size: 1.9rem;
    }

    .back-home {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .floating-circle {
        display: none;
    }

    .checkbox-group {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 30px 20px;
    }

    .register-title {
        font-size: 1.6rem;
    }

    .form-control {
        padding: 14px 16px;
    }

    .btn-register {
        padding: 16px;
        font-size: 1rem;
    }

    .register-logo {
        width: 75px;
        height: 75px;
    }
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Efectos especiales */
.form-control:focus + .floating-label {
    transform: translateY(-25px) scale(0.85);
    color: var(--accent-color);
}

/* Confeti effect para success */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    animation: confetti 3s ease-out forwards;
    z-index: 1000;
}
