/* =========================================================
   SECCIÓN DE LOGIN
========================================================= */

.login-section {
    width: 100%;
    min-height: calc(100vh - 72px - 304px);
    background: url('../../img/login/confintia-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Tarjeta de login */
.login-card {
    background: #FBFBFB;
    border-radius: 24px;
    border: 0.5px solid #D0D0D0;
    padding: 24px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.login-card__header {
    text-align: center;
    margin-bottom: 24px;
}

.login-card__title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #535353;
    margin: 0;
}

/* Botón Google */
.login-card__google-btn {
    width: 100%;
    max-width: 280px; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 0.5px solid #D0D0D0;
    border-radius: 4px;
    padding: 10px 14px; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 24px auto;
}

.login-card__google-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
    border-color: #FF8A2A;
}

.google-icon {
    width: 28px; 
    height: 28px; 
}

.google-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card__google-btn span {
    font-family: 'Roboto', sans-serif;
    font-size: 16px; 
    font-weight: 400;
    line-height: 22px;
    color: #535353;
}

/* Separador */
.login-card__separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.separator-line {
    flex: 1;
    height: 0;
    border-top: 0.8px solid #D0D0D0;
}

.separator-text {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #535353; 
    flex-shrink: 0;
}

.login-card__subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    color: #535353;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grupo de formulario */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #535353;
}

.form-input-wrapper {
    width: 100%;
    background: #FBFBFB;
    border: 0.5px solid #D0D0D0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-input-wrapper:focus-within {
    border-color: #FF8A2A;
    box-shadow: 0 0 0 2px rgba(255, 138, 42, 0.1);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #1B1B1B;
    background: transparent;
}

.form-input::placeholder {
    color: #C0C0C0;
}

/* Mensajes de error */
.form-error {
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 4px;
    padding-left: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Recuperar contraseña */
.forgot-password {
    text-align: left;
}

.forgot-password__link {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #A0A0A0;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.forgot-password__link:hover {
    opacity: 0.8;
    color: #535353;
}

/* Imagen decorativa */
.login-card__decoration {
    width: 100%;
    max-width: 308px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Botón Iniciar sesión */
.login-button-wrapper {
    display: flex;
    justify-content: center;
}

.login-button {
    background: #FF8A2A;
    border-radius: 4px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: #e07a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 42, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button span {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.25px;
}

/* Registro */
.register-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.register-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #41494E;
}

.register-link__btn {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #A0A0A0;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.register-link__btn:hover {
    opacity: 0.8;
    color: #535353;
}

/* =========================================================
   RESPONSIVE LOGIN
========================================================= */

/* Tablet */
@media (max-width: 768px) {
    .login-section {
        padding: 40px 20px;
        min-height: calc(100vh - 72px);
    }
    
    .login-card {
        padding: 24px 30px;
    }
    
    .login-card__title {
        font-size: 28px;
    }
    
    .login-card__subtitle {
        font-size: 18px;
    }
    
    .separator-text {
        font-size: 20px;
    }
    
    .login-card__google-btn {
        max-width: 260px;
        padding: 8px 12px;
    }
    
    .login-card__google-btn span {
        font-size: 15px;
    }
    
    .google-icon {
        width: 24px;
        height: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .login-section {
        padding: 30px 16px;
    }
    
    .login-card {
        padding: 20px 20px;
    }
    
    .login-card__title {
        font-size: 24px;
    }
    
    .login-card__subtitle {
        font-size: 16px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .login-card__google-btn span {
        font-size: 13px;
    }
    
    .login-card__google-btn {
        max-width: 240px;
        padding: 8px 10px;
    }
    
    .google-icon {
        width: 22px;
        height: 22px;
    }
    
    .login-button span {
        font-size: 16px;
    }
    
    .register-text,
    .register-link__btn,
    .forgot-password__link {
        font-size: 14px;
    }
    
    .separator-text {
        font-size: 18px;
    }
}

/* =========================================================
   ESTILOS PARA reCAPTCHA
========================================================= */

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.recaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.recaptcha-error {
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 8px;
    text-align: center;
}

/* Estilo para inputs con error */
.input-error {
    border-color: #dc3545 !important;
}

/* Mensaje de error por campo */
.field-error-message {
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 4px;
    padding-left: 4px;
}

/* Contenedor de errores generales */
.form-errors-container {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: center;
}