﻿
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.register-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Partículas animadas de fondo */
.particle {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(100vw, -100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Huellas animadas mejoradas */
.paw-decoration {
    position: fixed;
    font-size: 60px;
    opacity: 0;
    animation: paw-float 3s ease-in-out infinite, paw-fade 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    pointer-events: none;
}

@keyframes paw-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes paw-fade {
    0%, 100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.3;
    }
}

.register-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.register-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 50px 45px;
    animation: card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-15deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.register-logo {
    font-size: 70px;
    margin-bottom: 20px;
    display: inline-block;
    animation: logo-pulse 2s ease-in-out infinite;
    position: relative;
}

    .register-logo i {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.4));
    }

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.register-header h2 {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 10px;
    animation: title-slide 0.8s ease-out 0.2s both;
}

@keyframes title-slide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-header p {
    color: #6c757d;
    font-size: 16px;
    animation: subtitle-fade 0.8s ease-out 0.4s both;
}

@keyframes subtitle-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 25px;
    animation: form-slide-in 0.6s ease-out both;
}

@keyframes form-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .form-label i {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 16px;
    }

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 14px 20px;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    position: relative;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 20px rgba(102, 126, 234, 0.15);
        background: white;
        transform: translateY(-2px);
        outline: none;
    }

    .form-control:hover {
        border-color: #b8c5f2;
        background: white;
    }

    .form-control.is-invalid {
        border-color: #e74c3c;
        animation: shake 0.5s;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.form-control.is-valid {
    border-color: #27ae60;
    animation: success-bounce 0.5s;
}

@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 18px;
    }

        .input-icon i:hover {
            color: #764ba2;
            transform: translateY(-50%) scale(1.2);
        }

/* Barra de fuerza de contraseña mejorada */
.password-strength {
    height: 6px;
    background: #ecf0f1;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

    .password-strength-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.strength-weak {
    width: 33%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.strength-medium {
    width: 66%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.strength-strong {
    width: 100%;
    background: linear-gradient(90deg, #27ae60, #229954);
}

.password-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Botón mejorado con efectos avanzados */
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .btn-register::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-register:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-register:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }

    .btn-register:active {
        transform: translateY(-1px) scale(0.98);
    }

    .btn-register span {
        position: relative;
        z-index: 1;
    }

/* Alerta mejorada */
.alert-custom {
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 25px;
    display: none;
    animation: alert-slide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@keyframes alert-slide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.login-link {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 15px;
    animation: link-fade 0.8s ease-out 0.6s both;
}

    .login-link a {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.3s ease;
        position: relative;
    }

        .login-link a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s ease;
        }

        .login-link a:hover::after {
            width: 100%;
        }

@keyframes link-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animación para los campos del formulario */
.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.15s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.form-group:nth-child(4) {
    animation-delay: 0.25s;
}

.form-group:nth-child(5) {
    animation-delay: 0.3s;
}

.form-group:nth-child(6) {
    animation-delay: 0.35s;
}

@media (max-width: 576px) {
    .register-card {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .register-header h2 {
        font-size: 28px;
    }

    .register-logo {
        font-size: 60px;
    }
}
