/* Estilos para el módulo de autenticación */

/* * * 01. Family font principal * * * * * * * * * * * * * */
@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Cerapro/Cera-Pro-Light.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/Cerapro/Cera-Pro-Regular.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Cerapro/Cera-Pro-Medium.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/Cerapro/Cera-Pro-Bold.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/Cerapro/Cera-Pro-Black.otf');
}

/* Reset y estilos base */
*,
body {
    font-family: 'Cera-pro';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 20px 20px;
}

/* Layout principal */
.main-container {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    min-height: 480px;
    margin-top: 0;
}

/* Sección específica para el login - Ajustes de tamaño */
.login-section .main-container {
    /* Ajustes específicos para el contenedor principal del login - tamaño reducido */
    max-width: 950px;
    min-height: 550px;
}

.login-section .login-container {
    /* Ajustes específicos para el contenedor de login - padding según líneas naranjas de referencia */
    padding: 92px 45px 100px 96px;
}

.login-container {
    padding: 25px 50px 25px 60px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svg-container {
    width: 50%;
    background: transparent;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    padding-top: 15px;
    position: relative;
}

/* Branding y títulos */
.brand-logo {
    display: block;
    position: relative;
    top: -15px;
    margin: 0 0 3px 0px;
    height: 50px;
    width: auto;
    max-width: 200px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 12px;
    position: relative;
    top: 10px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: normal;
    word-spacing: normal;
    position: relative;
    top: 12px;
}

/* Sección de subtítulo con ícono */
.subtitle-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.subtitle-content {
    flex: 1;
}

.info-icon-container {
    width: 100%;
    height: 100%;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-icon-container:hover {
    transform: translateY(-2px);
}

.info-icon {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    border-radius: 15px;
    overflow: hidden;
}

/* Divisor eliminado - ya no se necesita */

/* Formularios */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-label.active {
    color: #2B92D0;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Ajuste específico para inputs de contraseña - espaciado de puntos */
.form-control[type="password"] {
    letter-spacing: 0.1em;
    font-family: 'Cera-pro', monospace;
}

.form-control:focus {
    outline: none;
    border-color: #2B92D0;
    box-shadow: 0 0 0 4px rgba(43, 146, 208, 0.1);
}

.form-control::-moz-placeholder {
    color: #999999;
}

.form-control::placeholder {
    color: #999999;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    font-size: 14px;
    color: #ef4444;
    margin-top: 6px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Grupos de contraseña con enlaces */
.password-group {
    position: relative;
}

.forgot-password,
.back-to-login {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #999999;
    text-decoration: none;
    border-bottom: 1px solid #999999;
    padding-bottom: 1px;
}

.forgot-password:hover,
.back-to-login:hover {
    color: #2B92D0;
    border-bottom-color: #2B92D0;
}

/* Botones */
.btn-login,
.btn-reset {
    width: 100%;
    background: #2B92D0;
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: normal;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 16px;
    position: relative;
    white-space: nowrap;
    height: 56px;
}

.btn-login:hover,
.btn-reset:hover {
    background: #1E7BB8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 146, 208, 0.3);
}

.btn-login span,
.btn-reset span {
    flex: 1;
    text-align: center;
    margin-left: 8px;
    margin-right: 34px;
    font-size: 14px;
    font-weight: 200;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon img {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(4000%) hue-rotate(220deg) brightness(90%) contrast(120%);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        max-width: 380px;
        min-height: 500px;
    }

    .login-container {
        width: 100%;
        padding: 30px 25px;
    }

    .svg-container {
        width: 100%;
        border-radius: 0 0 20px 20px;
        min-height: 180px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }
}

/* Contenedor para el texto "Tu nube, en un mismo lugar" */
.hero-text-container {
    position: absolute;
    top: 40px;
    left: 70px;
    z-index: 10;
    line-height: 1.3;
    text-align: left;
    max-width: 350px;
    white-space: nowrap;
}

/* Texto blanco para "Tu nube," */
.white-text {
    font-size: 35px;
    font-weight: 450;
    color: white;
    margin: 0 0 6px 0;
    display: block;
    letter-spacing: 2px;
    font-style: italic;
    transform: translateY(12px) translateX(-13px);
}

/* Texto con gradiente para "en un mismo lugar." */
.gradient-text {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg, #30C3EA 9%, #FDDD09 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: block;
    letter-spacing: 0.5px;
    transform: translateY(12px) translateX(-13px);
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .hero-text-container {
        top: 60px;
        left: 15px;
        max-width: 320px;
        white-space: nowrap;
    }

    .white-text {
        font-size: 22px;
        letter-spacing: 1.5px;
        transform: translateY(10px) translateX(-11px);
    }

    .gradient-text {
        font-size: 28px;
        letter-spacing: 0.3px;
        transform: translateY(10px) translateX(-11px);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }

    .hero-text-container {
        top: 40px;
        left: 10px;
        max-width: 250px;
        white-space: nowrap;
    }

    .white-text {
        font-size: 18px;
        letter-spacing: 1px;
        transform: translateY(8px) translateX(-9px);
    }

    .gradient-text {
        font-size: 22px;
        letter-spacing: 0.2px;
        transform: translateY(8px) translateX(-9px);
    }
}

/* Estilos para la card lateral con iconos SVG */
.side-card {
    position: absolute;
    bottom: 30px;
    right: 250px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    width: 54px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.side-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.side-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-card-icon:hover {
    background: transparent;
    transform: scale(1.08);
    box-shadow: none;
}

.svg-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.side-card-icon:hover .svg-icon {
    opacity: 1;
}

/* Estilos para la sección de características */
.features-section {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 40px 12px 40px 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    max-width: 210px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.features-content {
    display: flex;
    flex-direction: column;
}

.features-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.cumulo-icon {
    width: 22px;
    height: auto;
    opacity: 1;
    transform: translateY(-12px) translateX(6px);
    filter: brightness(0.7) contrast(1.2);
}

.features-main {
    flex: 1;
}

.features-title {
    font-size: 10px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: right;
    padding-right: 8px;
}

/* Línea gris debajo del título de características */
.features-title-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 0 auto 12px auto;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
    flex-direction: row-reverse;
}

.feature-text {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-align: right;
    padding-right: 4px;
}

.feature-separator {
    width: 100px;
    height: 1px;
    background: #d1d5db;
    margin: 0 8px;
    flex-shrink: 0;
}

.subtitle-divider {
    width: 280px;
    height: 1px;
    background: #d1d5db;
    margin: 16px 0;
}

.feature-checkmark {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Estilos para elementos activos */
.feature-item.active .feature-text {
    color: #2B92D0;
    transition: color 0.8s ease-in-out;
}

/* feature-separator activo eliminado - ya no se necesita */

.feature-item.active .feature-checkmark {
    opacity: 1;
    transform: scale(1);
}





/* Responsive para la card lateral */
@media (max-width: 768px) {
    .side-card {
        right: 220px;
        width: 30px;
        padding: 12px 4px;
    }

    .side-card-icon {
        width: 20px;
        height: 20px;
    }

    .svg-icon {
        width: 11px;
        height: 11px;
    }
}

@media (max-width: 480px) {
    .side-card {
        right: 190px;
        width: 26px;
        padding: 10px 3px;
    }

    .side-card-icon {
        width: 18px;
        height: 18px;
    }

    .svg-icon {
        width: 9px;
        height: 9px;
    }
}

/* Responsive para la sección de características */
@media (max-width: 768px) {
    .features-section {
        bottom: 20px;
        right: 15px;
        left: auto;
        max-width: 210px;
        padding: 22px 12px 18px 12px;
    }

    .cumulo-icon {
        width: 18px;
        transform: translateY(-10px) translateX(5px);
        filter: brightness(0.7) contrast(1.2);
    }

    .features-title {
        font-size: 9px;
        margin-bottom: 6px;
        text-align: right;
        padding-right: 0px;
    }

    .features-title-divider {
        width: 75%;
        margin: 0 auto 8px auto;
    }

    .feature-text {
        font-size: 10px;
        text-align: right;
        padding-right: 3px;
    }
}

@media (max-width: 480px) {
    .features-section {
        bottom: 15px;
        right: 10px;
        left: auto;
        max-width: 200px;
        padding: 20px 10px 16px 10px;
    }

    .cumulo-icon {
        width: 16px;
        transform: translateY(-9px) translateX(4px);
        filter: brightness(0.7) contrast(1.2);
    }

    .features-title {
        font-size: 8px;
        margin-bottom: 4px;
        text-align: right;
        padding-right: 0px;
    }

    .features-title-divider {
        width: 75%;
        margin: 0 auto 6px auto;
    }

    .features-list {
        gap: 6px;
    }

    .feature-item {
        padding: 4px 0;
    }

    .feature-text {
        font-size: 9px;
        text-align: right;
        padding-right: 2px;
    }

    .feature-checkmark {
        width: 12px;
        height: 12px;
    }
}

