/* estilosRegistro.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de partículas de fondo */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(245, 196, 0, 0.3);
    border-radius: 50%;
}

/* Contenedor principal del registro */
.register-container {
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(245, 196, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(245, 196, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

/* Encabezado */
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #f5c400;
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.register-header p {
    color: #aaa;
    font-size: 1rem;
}

/* Logo VERTICE INDUSTRIAL */
.vertice-logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertice-logo img {
    max-width: 220px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(1.1) contrast(1.1);
}

.logo-text {
    color: #f5c400;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 5px;
}

.logo-text span {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* Estilos de los campos de entrada */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #f5c400;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.2);
}

.input-group input::placeholder {
    color: #888;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 43px;
    color: #888;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.input-group input:focus + .input-icon {
    color: #f5c400;
}

/* Contenedor de dos columnas para nombre y apellido */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkbox de términos y condiciones */
.terms-group {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(245, 196, 0, 0.05);
    border-radius: 10px;
}

.terms-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #f5c400;
    cursor: pointer;
}

.terms-group label {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.terms-group a {
    color: #f5c400;
    text-decoration: none;
    font-weight: 600;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* Sección de requisitos de contraseña */
.password-requirements {
    background-color: rgba(245, 196, 0, 0.1);
    border-left: 4px solid #f5c400;
    padding: 15px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 25px;
}

.password-requirements p {
    color: #f5c400;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.password-requirements ul {
    list-style-type: none;
    padding-left: 5px;
}

.password-requirements li {
    color: #ddd;
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.password-requirements li:before {
    content: "•";
    color: #f5c400;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Botón de registro */
.register-button {
    width: 100%;
    padding: 16px;
    background-color: #f5c400;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.register-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(245, 196, 0, 0.4);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enlaces de login y volver */
.links-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.link {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5c400;
    transition: width 0.3s ease;
}

.link:hover {
    color: #f5c400;
}

.link:hover:after {
    width: 100%;
}

.link i {
    margin-right: 8px;
}

/* Versión alternativa sin imagen - texto estilizado */
.vertice-text-logo {
    text-align: center;
    margin-bottom: 20px;
}

.vertice-text-logo h2 {
    color: #f5c400;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.vertice-text-logo .subtitle {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mensajes de error/éxito */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.message.success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #4caf50;
    border-left: 4px solid #4caf50;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-left: 4px solid #f44336;
}

/* Validación visual de contraseña */
.password-requirements li.valid {
    color: #4caf50;
}

.password-requirements li.valid:before {
    content: "✓";
    color: #4caf50;
}

/* Responsive */
@media (max-width: 550px) {
    .register-container {
        padding: 30px 20px;
    }
    
    .register-header h1 {
        font-size: 2rem;
    }
    
    .vertice-logo img {
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-text span {
        font-size: 1rem;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vertice-text-logo h2 {
        font-size: 2rem;
    }
    
    .vertice-text-logo .subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }
}