/* Fondo con degradado */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background: linear-gradient(#0a1f44, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
  background: var(--color-bg);
  color: var(--color-text);
}
/* Contenedor principal */
.container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    width: 100%;             /* Se adapta a cualquier pantalla */
    max-width: 400px;        /* Tope máximo de 400px para que no se estire de más */
    box-sizing: border-box;  /* Evita que el padding deforme la caja */
    text-align: center;
}

/* Logo y títulos */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo img {
    width: 120px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 40px;
    margin: 0;
}

/* Campos de entrada */
form {
    display: flex;
    flex-direction: column;
}

label {
    text-align: left;
    margin: 10px 0 5px;
}

input {
    padding: 10px;
    border: none;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #333;
    color: white;
}

button {
    background-color: #007bff;
    color: white;
    padding: 16px 24px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

/* Estilos para el contenedor de contraseña con botón de mostrar/ocultar */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
}

.toggle-password i {
    color: white;
    transition: color 0.3s;
}

.toggle-password:hover i {
    color: #007bff; /* Azul igual que tu botón */
}

.btn-regresar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dcd9d9;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-regresar:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.btn-regresar i {
    font-size: 1.2rem;
}

.icon-back::before {
    content: "<";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.icon-eye {
    display: inline-block;
    width: 22px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50% / 65%;
    position: relative;
}

.icon-eye::before {
    content: "";
    position: absolute;
    inset: 3px 7px;
    background: currentColor;
    border-radius: 50%;
}

.icon-eye.is-hidden::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 5px;
    width: 28px;
    height: 2px;
    background: currentColor;
    transform: rotate(-35deg);
    transform-origin: center;
}

.form-message{
    color: red; 
    margin-top: 15px;
}

.form-message.is-success {
    color: #5ee28a;
}

.verification-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0 18px;
}

.verification-box p {
    margin: 0 0 8px;
}

.verification-box strong {
    color: #9fd2ff;
    overflow-wrap: anywhere;
}

.verification-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.verification-actions form {
    margin: 0;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    padding: 12px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 430px) {
    .verification-actions {
        grid-template-columns: 1fr;
    }
}
