/* registro.css - MISMO ESTILO QUE login.css */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #fbbf24;
    --light: #f8fafc;
    --dark: #1e293b;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #4576e0 100%);
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.bg-slider {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    /* Muestra la imagen completa */
    background-position: center;
    background-repeat: no-repeat;
    /* No se repite */
    opacity: 0;
    animation: slider 20s infinite;
    filter: brightness(0.6);
    background-color: #f3f2f2;
    /* Relleno para espacios vacíos */
}


.bg-slider .slide:nth-child(1) {
    background-image: url('../img/img4.png');
    animation-delay: 0s;
}

.bg-slider .slide:nth-child(2) {
    background-image: url('../img/img5.png');
    animation-delay: 4s;
}

.bg-slider .slide:nth-child(3) {
    background-image: url('../img/img6.png');
    animation-delay: 8s;
}

.bg-slider .slide:nth-child(4) {
    background-image: url('../img/img3.png');
    animation-delay: 12s;
}

.bg-slider .slide:nth-child(5) {
    background-image: url('../img/img2.png');
    animation-delay: 16s;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes slider {

    0%,
    20%,
    100% {
        opacity: 0;
        transform: scale(1.1) rotate(0.5deg);
    }

    5%,
    15% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    z-index: 1;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-group label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input:focus~label,
.input-group input:valid~label {
    top: 10px;
    transform: translateY(0);
    font-size: 12px;
    color: var(--primary);
}

.input-group i {
    font-size: 14px;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.input-group input:focus~.underline,
.input-group input:valid~.underline {
    width: 100%;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.remember-forgot input {
    margin-right: 5px;
}

.remember-forgot a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn-login {
    position: relative;
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-login:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.btn-text {
    display: block;
}

.btn-loader {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 20px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.social-btn.google {
    background: white;
    color: #DB4437;
}

.social-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.social-btn.facebook {
    background: #4267B2;
    color: white;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-link a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--error);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-login {
        gap: 10px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}