@font-face {
    font-family: "Helvetica Neue";
    src: url("../fonts/HelveticaNeueLT55Roman.ttf");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../fonts/HelveticaNeueLT65Medium.ttf");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../fonts/HelveticaNeueLT75Bold.ttf");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #05608d;
    --text-color: #332d28;
    --neutral-color: #f8f8f8;
    --white-color: #ffffff;
    --black-color: #1f1f1f;
    --gray-200: #eaeaea;
    --gray-400: #bdbdbd;
    --gray-600: #7a7a7a;
    --gray-700: #374151;
    --success-color: #16a34a;
    --font-primary: "Helvetica Neue", sans-serif;
    --font-secondary: "Helvetica Neue", sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.75rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --border-radius-sm: 0.25rem;
    --transition: all 0.3s;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-login {
    background: linear-gradient(135deg, var(--primary-color), #0d7bb3);
}

.rm-divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    color: var(--gray-600);
    font-size: 0.975rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-divider-or div {
    flex: 1;
    height: 1px;
    background: var(--gray-600);
    margin: 0 10px;
}

/* === Inicio botones === */

.btn {
    width: 100%;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
}

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

.btn-primary:hover:not(:disabled) {
    color: var(--white-color);
    background: var(--black-color);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    color: var(--white-color);
    background: var(--black-color);
}

.btn:disabled {
    background: var(--primary-color);
    color: var(--white-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-group .btn {
    flex: 1;
}

/* === Fin botones === */

/* === Inicio Columna Izquierda === */
.left-column {
    flex: 1;
    color: var(--white-color);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.logo img {
    height: 40px;
}

.logo:hover {
    transform: scale(1.05);
}

.main-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-section {
    margin-top: var(--spacing-xl);
    width: 100%;
}

.carousel-title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.carousel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-radius: var(--border-radius-sm);
}

.carousel-slide {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
}

.carousel-slide:nth-child(1),
.carousel-slide:nth-child(2) {
    width: calc(50% - 0.5rem);
}
.carousel-slide:nth-child(3) {
    width: 100%;
}

.swiper {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}
.slide-icon svg {
    stroke: var(--white-color);
    width: 28px;
    height: 28px;
}

.slide-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.slide-text {
    font-size: var(--font-size-base);
    opacity: 0.9;
    line-height: 1.5;
}

.swiper-pagination {
    position: relative !important;
    margin-top: var(--spacing-lg);
}

.swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

.swiper-pagination-progressbar-fill {
    background: var(--white-color);
    border-radius: 2px;
}

.slide-counter {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    text-align: center;
    z-index: 2;
}

/* === Fin Columna Izquierda === */

/* === Inicio Columna Derecha === */
.right-column {
    flex: 1;
    background: var(--white-color);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form-box {
    background: var(--white-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-sm);
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--gray-200);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.form-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.form-subtitle {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.form-tabs {
    display: flex;
    background: var(--neutral-color);
    border-radius: 6px;
    padding: 4px;
    margin-bottom: var(--spacing-xl);
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-600);
}

.tab-btn.active {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.form-input {
    background: var(--white-color);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    height: 48px;
    padding: var(--spacing-sm);
    width: 100%;
    transition: all 0.3s;
}

.form-select {
    background-color: var(--white-color);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    height: 48px;
    padding: var(--spacing-sm);
    width: 100%;
    transition: all 0.3s;

    line-height: 1.5;
    color: var(--text-color);
    background-image: url('../images/icons/caret-down.svg'
    );
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 96, 141, 0.1);
}

/* .form-input:invalid {
    border-color: #ff2323;
} */

.form-input::placeholder {
    color: var(--gray-400);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: color 0.3s;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--white-color);
    font-size: var(--font-size-base);
    font-weight: 600;
    height: 48px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--black-color);
}

.forgot-password {
    text-align: center;
    margin-top: var(--spacing-md);
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* === Fin Columna Derecha === */

/* === inicio mostrar/ocultar contrasenia === */
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.eye-open-icon {
    display: none;
    width: 24px;
    height: 24px;
}
.eye-closed-icon {
    display: inline;
    width: 24px;
    height: 24px;
}
/* === fin mostrar/ocultar contrasenia === */

/* === inicio registro === */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subtitle-header {
    color: var(--gray-600);
    font-size: var(--font-size-base);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    /* animation: fadeIn 0.3s ease-in-out; */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* mensajes de stado */
.message {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1rem;
}

.message-success {
    background: rgb(22 163 74 / 0.1);
    border: 1px solid rgb(22 163 74 / 0.2);
    color: var(--success-color);
}

.message-warning {
    background: rgb(245 158 11 / 0.1);
    border: 1px solid rgb(245 158 11 / 0.2);
    color: var(--warning-color);
}

.message-info {
    background: rgb(37 99 235 / 0.1);
    border: 1px solid rgb(37 99 235 / 0.2);
    color: var(--primary-color);
    text-align: center;
}

.message-info h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* indicador de progreso */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.step-indicator.completed {
    background: var(--success-color);
    color: var(--white-color);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    transition: var(--transition);
}

.step-line.completed {
    background: var(--success-color);
}

.hint-message {
    display: block;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

.icon-success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    border-radius: var(--border-radius-sm);
    height: 40px;
    width: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.icon-success-message img {
    height: 24px;
    width: 24px;
}
.title-success-message {
    color: var(--success-color);
    margin-bottom: 1rem;
}
.text-success-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* metodo de verificacion */
.verification-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.title-step {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-lg);
}
.text-step {
    color: var(--gray-700);
    font-size: var(--font-size-base);
    letter-spacing: 0.02rem;
    margin-bottom: 1.5rem;
}

.method-card {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--white-color);
}

.method-card:hover {
    border-color: var(--primary-color);
    background: rgb(37 99 235 / 0.05);
}

.method-card.selected {
    border-color: var(--primary-color);
    background: rgb(37 99 235 / 0.1);
}

.method-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.method-title {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.97rem;
}

.method-option {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-top: 0.25rem;
}

/* codigo de verificarcion */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* estados de carga */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* contacto */

.reg-contact {
    background-color: var(--neutral-color);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius-sm);
    margin-top: 2rem;
}

.reg-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.reg-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.reg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reg-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.reg-link:hover {
    color: var(--primary-color);
}
.reg-link:hover .reg-icon {
    fill: var(--primary-color);
}

.reg-socials {
    display: flex;
    gap: 1rem;
}

.reg-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: fill 0.3s;
}

.reg-link-icon:hover .reg-icon {
    fill: var(--primary-color);
}

@media (max-width: 1100px) {
    .carousel-slide:nth-child(1),
    .carousel-slide:nth-child(2) {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container-login {
        flex-direction: column;
        min-height: 100vh;
    }

    .left-column {
        min-height: 60vh;
        padding: var(--spacing-lg);
    }

    .main-title {
        font-size: var(--font-size-lg);
    }

    .swiper {
        height: 250px;
    }

    .right-column {
        padding: var(--spacing-lg);
    }

    .form-box {
        padding: var(--spacing-lg);
        box-shadow: none;
        border: none;
    }

    .logo {
        margin-left: auto;
        margin-right: auto;
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .left-column {
        padding: var(--spacing-md);
    }

    .right-column {
        padding: var(--spacing-md);
    }

    .form-box {
        padding: var(--spacing-md) 0;
    }

    .main-title {
        font-size: var(--font-size-base);
    }

    .swiper {
        height: 300px;
    }

    .verification-methods {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column-reverse;
    }

    .code-input {
        width: 40px;
        height: 40px;
    }
}
