/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #17288a;
    --secondary-color: #26d0ce;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17288a;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition-base: all 0.3s ease;
    --shadow-light: 0 0 32px 0 rgba(172, 173, 197, 0.623);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== BASE Y FONDO ===== */
body {
    background: linear-gradient(135deg, #1a446c, #7c750d, #1a446c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.registro-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* ===== FORMULARIO ===== */
.registro-form {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    padding: 40px;
    animation: slideIn 0.8s ease-out forwards;
    text-align: center;
}

.logo {
    display: block;
    margin: 0 auto 30px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* ===== ALERTAS PROFESIONALES ===== */
.alert {
    width: 100%;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
    border: 2px solid;
}

/* Alerta de INFORMACI�ªÑN - Azul gradiente */
.alert-info {
    background: linear-gradient(135deg, rgba(23, 40, 138, 0.95), rgba(38, 208, 206, 0.85));
    border-color: rgba(38, 208, 206, 0.8);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Alerta de �ª±XITO - Verde gradiente */
.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 134, 55, 0.95));
    border-color: rgba(72, 187, 120, 0.8);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Alerta de ERROR - Rojo gradiente */
.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(180, 43, 56, 0.95));
    border-color: rgba(245, 101, 101, 0.8);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Alerta de ADVERTENCIA - Amarillo/Naranja gradiente */
.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
    border-color: rgba(255, 213, 79, 0.8);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Iconos dentro de alertas */
.alert i {
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Bot�«Ñn de cerrar alerta */
.alert .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.alert .close:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ===== FORM GROUP ===== */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #26d0ce;
    box-shadow: 0 0 0 0.2rem rgba(38, 208, 206, 0.3);
}

/* Feedback de validaci�«Ñn */
.invalid-feedback {
    display: block;
    margin-top: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== BOTONES ===== */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===== ENLACES ===== */
.auth-links {
    margin-top: 30px;
    font-size: 0.95rem;
}

.auth-links p {
    margin-bottom: 10px;
}

.auth-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-base);
}

.auth-links a:hover {
    color: #26d0ce;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #26d0ce;
    transition: var(--transition-base);
}

.auth-links a:hover::after {
    width: 100%;
}

.recovery-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.recovery-link:hover {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .registro-container {
        gap: 20px;
    }
    
    .registro-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .registro-container {
        flex-direction: column;
    }
    
    .registro-form {
        width: 100%;
        max-width: 100%;
    }
}