:root {
  --unam-blue: #003057; /* Azul institucional UNAM */
  --unam-gold: #866d11; /* Oro institucional */
  --soft-bg: #f8f9fa;
  --white: #ffffff;
  --error: #dc3545;
  --success: #198754;
  --highlight-bg: rgba(0, 48, 87, 0.03); /* Fondo muy tenue azul */
  --highlight-border: #866d11;
  
}
/* Importar fuentes si no están en el layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');


/* Título Principal */
h1 {
    color: var(--azul-brand);
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}


body.main-layout {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Tarjeta de Registro */
.register-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.text-unam {
  color: var(--unam-blue);
}

/* Etiquetas e Inputs */
.custom-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.custom-label i {
  font-size: 1.2rem;
  color: var(--unam-blue);
}

.custom-input {
  border-radius: 10px;
  padding: 12px 15px;
  border: 1.5px solid #ced4da;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: var(--unam-blue);
  box-shadow: 0 0 0 0.25rem rgba(0, 48, 87, 0.15);
}

/* Password Toggle Wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--unam-blue);
}

/* Requerimientos de Contraseña */
.requirement {
  transition: all 0.3s ease;
  margin-bottom: 2px;
}

.requirement.invalid {
  color: #adb5bd;
}

.requirement.valid {
  color: var(--success);
  font-weight: 500;
}

/* Botón UNAM */
.btn-unam-primary {
  background-color: var(--unam-blue);
  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-unam-primary:hover {
  background-color: #002340;
  color: white;
  transform: translateY(-2px);
}

.btn-unam-primary:active {
  transform: translateY(0);
}

/* Links */
a {
  text-decoration: none;
  transition: color 0.2s;
}

.mb-4 {
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Cuando el usuario hace clic o escribe dentro de este bloque */
.mb-4:focus-within {
  transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* Cambio de color del label cuando el input está activo */
.mb-4:focus-within .custom-label {
  color: var(--highlight-border);
}

.mb-4:focus-within .custom-label i {
  color: var(--highlight-border);
}

/* Mejora del Input al tener el foco */
.custom-input:focus {
  border-color: var(--highlight-border) !important;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(134, 109, 17, 0.15); /* Sombra dorada suave */
  outline: none;
}

.password-requirements {
    margin-top: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    overflow: hidden;
    }
    .requirement {
        margin-bottom: 3px;
        transition: all 0.3s ease;
    }
    .requirement.valid {
        color: green;
    }
    .requirement.invalid {
        color: red;
    }
    .requirement.valid::before {
        content: "✓ ";
    }
    .requirement.invalid::before {
        content: "✗ ";
    }
    .password-strength {
        margin-top: 5px;
        height: 5px;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    .strength-weak {
        background-color: #ff4d4d;
        width: 25%;
    }
    .strength-medium {
        background-color: #ffa64d;
        width: 50%;
    }
    .strength-strong {
        background-color: #4CAF50;
        width: 75%;
    }
    .strength-very-strong {
        background-color: #2E7D32;
        width: 100%;
    }