:root {
            --burgundy: #800020;
            --black: #000000;
            --gray-dark: #4A4A4A;
            --gray: #777777;
            --white: #ffffff;
            --green: #4caf50;
            --red: #ff4444;
            --dark-bg: #1a1a1a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--black);
            color: var(--white);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
        }

        .register-container {
            max-width: 600px;
            width: 100%;
            background-color: var(--dark-bg);
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, var(--burgundy), #991a28);
            padding: 2rem;
            text-align: center;
            position: relative;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            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="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }

        .logo {
            width: 80px;
            height: 80px;
            background-color: var(--white);
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--burgundy);
            position: relative;
            z-index: 1;
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .header p {
            opacity: 0.9;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }

        .form-container {
            padding: 2rem;
        }

        .form-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            flex: 1;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--gray);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .required {
            color: var(--red);
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--gray-dark);
            border-radius: 8px;
            background-color: var(--black);
            color: var(--white);
            font-size: 1rem;
            transition: all 0.3s ease;
            font-weight: 400;
            font-family: 'Montserrat', sans-serif;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--burgundy);
            box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
        }

        .form-group select option {
            background-color: var(--black);
            color: var(--white);
        }

        .form-group input::placeholder {
            color: var(--gray);
        }

        .date-group {
            margin-bottom: 1.5rem;
        }

        .date-group h4 {
            color: var(--gray);
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .submit-btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--burgundy), #991a28);
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
            font-family: 'Montserrat', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .messages {
            margin: 1rem 0;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 500;
        }

        .error {
            background-color: rgba(255, 68, 68, 0.1);
            border: 1px solid var(--red);
            color: var(--red);
        }

        .success {
            background-color: rgba(76, 175, 80, 0.1);
            border: 1px solid var(--green);
            color: var(--green);
        }

        .messages p {
            margin-bottom: 0.5rem;
        }

        .messages p:last-child {
            margin-bottom: 0;
        }

        .terms {
            text-align: center;
            margin-top: 1.5rem;
            font-size: 0.85rem;
            color: var(--gray);
            line-height: 1.4;
        }

        .terms a {
            color: var(--burgundy);
            text-decoration: none;
            font-weight: 500;
        }

        .terms a:hover {
            text-decoration: underline;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            
            .register-container {
                margin: 1rem;
            }
            
            .header {
                padding: 1.5rem;
            }
            
            .header h1 {
                font-size: 1.5rem;
            }
            
            .form-container {
                padding: 1.5rem;
            }
        }

        /* Animaciones */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .register-container {
            animation: fadeIn 0.6s ease-out;
        }

        .form-group {
            animation: fadeIn 0.6s ease-out;
        }

        .form-group:nth-child(1) { animation-delay: 0.1s; }
        .form-group:nth-child(2) { animation-delay: 0.2s; }
        .form-group:nth-child(3) { animation-delay: 0.3s; }
        .form-group:nth-child(4) { animation-delay: 0.4s; }

        
img{
    width: 83px;
    border-radius: 100%;
}        


/* Contenedor para posicionar el icono DENTRO del input */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* El input debe tener espacio a la derecha para que no se solape con el icono */
.password-wrapper input {
    padding-right: 45px; /* Ajusta este valor si es necesario */
}

/* Posiciona el icono de forma absoluta dentro del contenedor */
.password-wrapper .ph {
    position: absolute;
    right: 15px; /* Distancia desde el borde derecho */
    font-size: 1.4rem; /* Tamaño del icono */
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.password-wrapper .ph:hover {
    color: var(--white);
}