@font-face {font-family: BalooBhai-Regular;src: url(BalooBhai-Regular.ttf) format("truetype");}

/* Variables y estilos base */
:root {
    --primary-color: #84b899;
    --secondary-color: rgb(12, 26, 99);  /* Cambiado a #0c1a63 como solicitaste */
    --text-color: #323e48;
    --text-light: #ffffff;
    --bg-dark: #323e48;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h3,li,h2 {font-family: BalooBhai-Regular;}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 15px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    transition: var(--transition);
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-logo img {
    margin: 0 auto 20px;
    width: 80px;
}

.footer-info p {
    opacity: 0.8;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    opacity: 0.8;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Estilos para la sección de registro */
.form-container.outer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    /* min-height: calc(100vh - 70px); */
    background: #f5f7fa;
}

.form-form {
    width: 100%;
    max-width: 500px;
}

.form-form-wrap {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: center;
}

.signup-link.register {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #666;
}

.signup-link.two{
    margin-top: 20px;
    margin-bottom: 0;
}

.signup-link.register a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.signup-link.register a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.field-wrapper {
    margin-bottom: 15px;
    position: relative;
}

/* Contenedor para el campo de contraseña y enlace de recuperación */
.password-field-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo para el enlace "¿Has olvidado tu contraseña?" */
.forgot-pass-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.field-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-family: BalooBhai-Regular;
    font-size: 0.875rem;
}

.field-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;    
    height: 42px;
    transition: all 0.3s ease;
    font-family: BalooBhai-Regular;
    font-size: 0.875rem;
}

.field-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(132, 184, 153, 0.2);
    outline: none;
}

.field-wrapper svg.feather {
    position: absolute;
    left: 10px;
    top: 38px;
    color: #777;
    width: 18px;
    height: 18px;
}

#toggle-password {
    position: absolute;
    left: inherit;
    right: 10px;
    top: 38px;
    cursor: pointer;
    color: #777;
    width: 18px;
    height: 18px;
    z-index: 2;
}

#toggle-password:hover {
    color: var(--primary-color);
}

/* Estilos para el checkbox - versión corregida */
.terms_condition .new-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #555;
    margin: 5px 0;
}

.terms_condition .new-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.terms_condition .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.terms_condition .new-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.terms_condition .new-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.terms_condition .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms_condition .new-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Eliminar efecto box-shadow al hacer click */
.terms_condition .new-checkbox input:focus ~ .checkmark {
    box-shadow: none;
    outline: none;
}

.terms_condition {
    margin: 15px 0;
    font-size: 0.8rem;
}

/* Ajuste para alinear texto del checkbox */
.terms_condition a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms_condition a:hover {
    text-decoration: underline;
}

.btn_login, .btn_register {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Alineación perfecta de iconos */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 35px !important;
}

.input-with-icon .feather {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #777;
    pointer-events: none;
}

/* Ajustes específicos para el checkbox */
.new-checkbox {
    display: flex;
    align-items: center;
}

/* Header específico para la página de registro */
body.register-page .main-header {
    position: relative;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    box-shadow: none;
}
body.register-page .main-header.main{
    background: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
}
body.register-page .main-header.main .header-container{
    justify-content: center;
}

body.register-page .main-header.scrolled {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

/* Responsive */
@media (max-width: 768px) {
    .form-form-wrap {
        padding: 25px;
    }
    
    .form-content h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .form-form-wrap {
        padding: 20px 15px;
    }
    
    .field-wrapper input {
        padding: 8px 12px 8px 32px;
    }
    
    .field-wrapper svg.feather {
        top: 10px;
        width: 14px;
        height: 14px;
    }
    
    #toggle-password {
        top: 35px;
    }
}

.invalid-feedback{
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}