@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body, html {
    height: 100%;
    margin: 0;
    font-family: "Helvetica Neue",Roboto,Arial,"Droid Sans",sans-serif;
    background-color: #0f2b40; /* Azul oscuro profundo de la imagen */
    color: #ffffff;
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Un degradado muy sutil para dar profundidad */
    background: radial-gradient(circle at top right, #000, #0f2b40 90%);
    /*background: radial-gradient(circle at top right, #1a4563, #0f2b40 70%);*/
}

/* --- Header Superior --- */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 10;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand-icon {
    color: #00d285; /* Verde del logo */
    margin-right: 5px;
    font-size: 1.8rem;
}

.lang-selector {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.lang-selector:hover {
    opacity: 1;
}

.lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* --- Contenido Central --- */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding-bottom: 100px; /* Espacio para no chocar con las ondas */
    width: 100%;
}

.login-card {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 0 20px;
}

.login-logo-center {
    margin-bottom: 15px;
    color: #fff;
    font-size: 3rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.login-subtitle {
    color: #aab8c5; /* Gris azulado */
    margin-bottom: 40px;
    font-size: 0.95rem;
    font-weight: 400;
}

/* --- Inputs --- */
/* Fix para el autocompletado amarillo de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1c3d5a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group {
    margin-bottom: 20px;
}

.password-container {
    position: relative;
    display: block; /* Asegurar comportamiento de bloque */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8daac1;
    z-index: 10; /* Asegurar que esté por encima */
}

.toggle-password:hover {
    color: #fff;
}

.form-control-custom {
    background-color: #1c3d5a; /* Azul intermedio */
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 20px;
    color: #fff;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

.form-control-custom::placeholder {
    color: #8daac1;
    opacity: 0.8;
}

.form-control-custom:focus {
    outline: none;
    background-color: #234b73;
    border-color: #00d285;
    box-shadow: 0 0 0 3px rgba(0, 210, 133, 0.15);
}

/* --- Opciones (Checkbox y Link) --- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #aab8c5;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #1c3d5a;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.form-check-input:checked {
    background-color: #00d285;
}

.form-check-input:checked::after {
    content: '✔';
    font-size: 10px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-link {
    color: #00d285;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.forgot-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Botón Login --- */
.btn-login {
    background-color: #00d285;
    color: #fff;
    border: none;
    border-radius: 30px; /* Bordes muy redondeados */
    padding: 12px 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 210, 133, 0.25);
}

.btn-login:hover {
    background-color: #00b874;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 210, 133, 0.35);
}

/* --- Ondas Footer --- */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
    overflow: hidden;
}

.waves-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Fondo decorativo (puntos sutiles) */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* --- Footer Versión --- */
.login-footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 100; /* Por encima de las ondas */
    color: #6c757d; /* Gris oscuro para contrastar con la onda blanca */
    font-size: 0.8rem;
    font-weight: 500;
}