@import url('variables.css');
@import url('flexbox.css');
@import url('styles.css');

/* =============================================================
   LOGIN PAGE - FORGOT PASSWORD - CHECK OUT PAGE
=============================================================== */

/* --------- GLOBAL RESET AND BASE STYLES --------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--font-color);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 137, 209, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 180, 37, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 137, 209, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 101px,
            rgba(255, 255, 255, 0.01) 102px
        );
    pointer-events: none;
    z-index: -1;
}

.hide {
    display: none;
}

/* ==================================================
                   LOGIN PAGE STYLES
==================================================== */

/* Main container */
.container-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 510px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Left side (image/banner) */
.login-left {
    background-color: #a4defd;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
}

.dashboard-left {
    max-height: 90vh;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Right side (form) */
.login-right {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Headings & text */
.login-title,
.login-title-2 {
    text-align: center;
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #1f2937;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.login-title {
    margin-bottom: 0.75rem;
}

.login-title-2 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.login-subtitle,
.login-subtitle-2,
.login-text {
    text-align: center;
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
    color: #6b7280;
    line-height: 1.5;
}

.login-subtitle {
    margin-bottom: 2.5rem;
    font-weight: var(--font-weight-body);
    font-size: var(--font-size-navbar);
    color: #4b5563;
}

.login-subtitle-2 {
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-button);
}

.login-text {
    margin-bottom: 2rem;
    font-weight: var(--font-weight-body);
}

/* Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        color: #1f2937;
        margin-bottom: 0.6rem;
        font-family: var(--font-family-body);
        font-weight: var(--font-weight-body);
        letter-spacing: 0.025em;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: var(--font-size-button);
        font-family: var(--font-family-body);
        background-color: #f9fafb;
        outline: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: var(--primary-color);
            background-color: #fff;
            box-shadow: 0 0 0 3px rgba(0, 137, 209, 0.1), 0 4px 12px rgba(0, 137, 209, 0.15);
            transform: translateY(-1px);
        }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form options */
.form-options {
    width: 100%;
    margin-bottom: 2rem;
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
}

.form-options-inner {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
}

.form-options a {
    color: #374151;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
}

    .form-options a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #f4b425;
        transition: width 0.3s ease;
        z-index: -1;
    }

    .form-options a:hover {
        color: black;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 137, 209, 0.3);
    }

    .form-options a:hover::before {
        width: 100%;
    }

.form-options span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn-login,
.btn-password {
    width: 100%;
    background: #F4B425;
    color: black;
    font-weight: var(--font-weight-button);
    font-size: var(--font-size-button);
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-family-button);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.025em;
}

.btn-login::before,
.btn-password::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

    .btn-login:hover,
    .btn-password:hover {
        background-color: #0056b3;
        color: white;
    }

        .button-login:hover span {
            color: white;
        }

    .btn-login:hover::before,
    .btn-password:hover::before {
        left: 100%;
    }

    .btn-login:active,
    .btn-password:active {
        transform: translateY(0);
        box-shadow: 0 4px 14px rgba(244, 180, 37, 0.4);
    }

.btn-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    bottom: 0.05rem;
}

/* Sign-up footer */
.signup-footer {
    margin-top: 2rem;
    font-family: var(--font-family-body);
    position: relative;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}

.signup-text {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 1rem;
    letter-spacing: 0.025em;
}

.signup-button {
    display: inline-block;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: rgba(0, 137, 209, 0.05);
    color: var(--primary-color);
    font-weight: 550;
    font-size: var(--font-size-button);
    font-family: var(--font-family-button);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.025em;
}

.signup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.signup-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 137, 209, 0.4);
    border-color: var(--primary-color);
}

.signup-button:hover::before {
    left: 100%;
}

.signup-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 137, 209, 0.3);
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

    .input-icon-wrapper input {
        width: 100%;
        padding-right: 3rem;
        box-sizing: border-box;
    }

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-icon-wrapper input:focus + .input-icon,
.input-icon-wrapper input.valid + .input-icon {
    color: var(--primary-color);
}

/*.input-icon-wrapper input.invalid + .input-icon {
    color: #ef4444;
}*/

/* ==================================================
             FORGOT PASSWORD PAGE STYLES
==================================================== */

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, #e5e7eb, transparent);
}

    .form-divider span {
        font-family: var(--font-family-body);
        padding: 0 1rem;
        color: #6b7280;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        background: white;
    }

/* New Member Section */
.new-member-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 137, 209, 0.02) 0%, rgba(244, 180, 37, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 137, 209, 0.1);
}

.new-member-title {
    font-size: var(--font-size-subtitle2);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle2);
    margin-bottom: 0.5rem;
    color: #1f2937;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.new-member-text {
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Success Message */
.success-message {
    display: none;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-content {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.success-content i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.success-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.success-content p {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.4;
}

/* Password footer */
.password-footer {
    margin-top: 2rem;
    font-family: var(--font-family-body);
    position: relative;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.password-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    word-wrap: break-word;
}

    .password-text a {
        display: inline-block;
        padding: 15px 20px;
        background-color: #F4B425;
        color: black;
        text-decoration: none;
        border-radius: 12px;
        font-weight: bold;
        position: relative;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .password-text a:hover,
        .password-text a:focus {
            background-color: #0056b3;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 137, 209, 0.3);
        }

        .password-text a svg {
            width: 1em;
            height: 1em;
            display: inline-block;
            vertical-align: -0.15em; /* ajusta fino: prueba entre -0.10em y -0.20em */
        }



/* ==================================================
            LOGIN & FORGOT PASSWORD MODALS
==================================================== */

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 400px;
    width: 90%;
    position: relative;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-modal.show .login-modal-content {
    transform: scale(1) translateY(0);
}

.login-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.login-logo {
    width: 150px;
    height: 100px;
    margin: -1.5rem auto 2.5rem auto;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 137, 209, 0.3));
}

.login-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 137, 209, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite alternate;
    z-index: -1;
}

.login-modal-title {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #1f2937;
    margin-top: -3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideUp 0.6s ease-out 0.3s forwards;
}

.login-modal-title-error {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #D9534F;
    margin-top: -3rem;
    margin-bottom: 0.5rem;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.login-modal-subtitle {
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
    color: #6b7280;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleSlideUp 0.6s ease-out 0.5s forwards;
}

/* Forgot Password Modal */
.forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-modal.show {
    opacity: 1;
    visibility: visible;
}

.forgot-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 400px;
    width: 90%;
    position: relative;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.forgot-modal.show .forgot-modal-content {
    transform: scale(1) translateY(0);
}

.forgot-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.forgot-logo {
    width: 150px;
    height: 100px;
    margin: -1.5rem auto -1.5rem auto;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

.forgot-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.forgot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite alternate;
    z-index: -1;
}

.forgot-modal-title {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideUp 0.6s ease-out 0.3s forwards;
}

.forgot-modal-subtitle {
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
    color: #6b7280;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleSlideUp 0.6s ease-out 0.5s forwards;
}

/* Shared Modal Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes titleSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loader dots for modals */
.login-modal .loader-dots,
.forgot-modal .loader-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    animation: loaderFadeIn 0.6s ease-out 0.7s forwards;
}

.login-modal .loader-dots span,
.forgot-modal .loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.login-modal .loader-dots span:nth-child(1),
.forgot-modal .loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.login-modal .loader-dots span:nth-child(2),
.forgot-modal .loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* Responsive Design for Modals */
@media (max-width: 480px) {
    .login-modal-content,
    .forgot-modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .login-logo,
    .forgot-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .login-glow,
    .forgot-glow {
        width: 90px;
        height: 90px;
    }

    .login-modal-title,
    .login-modal-title-error,
    .forgot-modal-title {
        font-size: calc(var(--font-size-subtitle) * 0.8);
    }
    
    .login-modal-subtitle,
    .forgot-modal-subtitle {
        font-size: calc(var(--font-size-navbar) * 0.9);
        margin-bottom: 1.5rem;
    }
}

/* --------- RESPONSIVE DESIGN --------- */
/* Tablet and small desktops */
@media (max-width: 768px) {
    .container-login {
        grid-template-columns: 1fr;
        height: auto;
        width: 95%;
    }

    .img-dashboard {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .login-title {
        font-size: calc(var(--font-size-subtitle) * 0.7);
    }

    .login-subtitle {
        font-size: calc(var(--font-size-navbar) * 0.9);
    }

    .btn-login,
    .btn-password {
        font-size: var(--font-size-button);
        padding: 0.6rem;
    }
    
    /* Forgot Password Responsive */
    .new-member-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .new-member-title {
        font-size: calc(var(--font-size-subtitle2) * 0.8);
    }
    
    .new-member-text {
        font-size: calc(var(--font-size-navbar) * 0.9);
    }
    
    .form-divider span {
        font-size: calc(var(--font-size-button) * 0.8);
        padding: 0 0.75rem;
    }
    
    .success-content {
        padding: 1rem;
    }
    
    .success-content i {
        font-size: 1.5rem;
    }
    
    .success-content h4 {
        font-size: 1rem;
    }
    
    .success-content p {
        font-size: 0.8rem;
    }
    
    .password-text a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ==================================================
                CHECKOUT PAGE STYLES
=================================================== */
.container-check {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 30px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    margin: 15px 50px;
    color: black;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.6fr;
    grid-template-rows: auto auto;
    gap: 20px;
    position: relative;
    margin: 0 50px;
    padding-top: 90px;
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 50px;
        left: 0;
        right: 60px;
        height: 7px;
        background-color: #e2f3ff;
        z-index: 0;
    }

.timeline-step {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

/* --------- TIMELINE ICONS --------- */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -70px;
    left: 0;
    z-index: 2;
}

    .icon-box img {
        max-width: 30px;
        max-height: 30px;
    }

    .icon-box.yellow {
        background-color: #f4b425;
    }

    .icon-box.blue {
        background-color: #319cd1;
    }

.step-content {
    padding-left: 0;
}

    .step-content p {
        font-size: 16px;
        font-family: var(--font-family-title);
        font-weight: 500;
        margin: 0;
        margin-bottom: 6px;
        text-align: left;
    }

    .step-content .subtitle {
        font-family: var(--font-family-title);
        font-size: 14px;
        color: black;
    }

    .step-content .text {
        font-size: 12px;
        color: black;
        font-weight: 400;
    }

/* --------- TOGGLES --------- */
.status-toggle {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: var(--font-family-title);
    font-weight: 450;
    color: black;
    gap: 10px;
    margin-bottom: 10px;
}

/* Toggle reducido */
.toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

    .toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c; /* rojo apagado */
    transition: 0.3s;
    border-radius: 18px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.toggle input:checked + .slider {
    background-color: #4caf50; /* verde encendido */
}

    .toggle input:checked + .slider:before {
        transform: translateX(16px);
    }


.toggle-label {
    font-family: var(--font-family-title);
    font-size: 11px;
    font-weight: 450;
    color: black;
}


.ssl-icon {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin-top: -10px;
    margin-inline-start: -15px;
}

.timeline-separator {
    margin: 40px 50px 0 50px;
    height: 2px;
    background-color: #e2e2e2;
    width: calc(100% - 120px);
}

.plan-section {
    margin: 20px 50px 0 50px;
    overflow: visible;
    position: relative;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.continue-button {
    width: 30%;
    background: #f4b425;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    justify-content: center;
    font-family: var(--font-family-title);
    position: relative;
    box-shadow: 0 4px 16px rgba(244, 180, 37, 0.3);
    overflow: hidden;
}

    .continue-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .continue-button:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(244, 180, 37, 0.4);
    }

        .continue-button:hover::before {
            left: 100%;
        }

    .continue-button:active {
        transform: translateY(0);
        box-shadow: 0 4px 16px rgba(244, 180, 37, 0.3);
    }

    .continue-button:disabled {
        cursor: not-allowed;
    }

    .continue-button .icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }

    .continue-button .loading-spinner {
        display: none;
        width: 16px;
        height: 16px;
        box-sizing: border-box;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        flex-shrink: 0;
    }

    .continue-button.loading .icon-container svg {
        display: none;
    }

    .continue-button.loading .loading-spinner {
        display: inline-block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.arrow-icon {
    width: 14px;
    height: 14px;
}

/* --------- PLAN CARDS --------- */
.plans {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.plan {
    flex: 1;
    padding: 20px;
    margin: 20px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    z-index: auto;
    contain: layout style;
}

    .plan::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
        z-index: 1;
        border-radius: 16px;
        overflow: hidden;
    }

    .plan:hover {
        transform: translateY(-5px) scale(1.02);
        z-index: 20;
        will-change: transform, box-shadow;
        overflow: visible;
    }

    .plan:not(.selected):hover {
        animation: none;
    }

    .plan:hover::before {
        left: 100%;
    }

    .plan.selected {
        border: 3px solid #00a8e6;
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 16px 40px rgba(0, 168, 230, 0.3), 0 0 0 1px rgba(0, 168, 230, 0.2);
        position: relative;
        animation: plan-breathing 2s ease-in-out infinite;
        z-index: 15;
        will-change: transform, box-shadow;
        overflow: visible;
    }

    .plan.selected:hover {
        animation-play-state: paused;
        transform: translateY(-6px) scale(1.04);
        box-shadow: 0 24px 60px rgba(0, 168, 230, 0.5), 0 0 0 2px rgba(0, 168, 230, 0.4);
        z-index: 30;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: visible;
    }

    .plan.monthly.selected {
        background: linear-gradient(135deg, #dbeafe 0%, #bae6fd 100%);
        border-color: #00a8e6;
        border-width: 3px;
        box-shadow: 0 16px 40px rgba(219, 234, 254, 0.4), 0 0 0 1px rgba(0, 168, 230, 0.3);
        position: relative;
    }

    .plan.monthly.selected::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 168, 230, 0.06) 0%, rgba(0, 168, 230, 0.02) 100%);
        border-radius: 16px;
        z-index: 1;
        pointer-events: none;
    }

    .plan.monthly.selected .plan-header-title,
    .plan.monthly.selected .plan-info-box {
        position: relative;
        z-index: 2;
    }

    .plan.monthly.selected:hover {
        box-shadow: 0 20px 50px rgba(219, 234, 254, 0.6), 0 0 0 2px rgba(0, 168, 230, 0.4);
    }

    .plan.yearly.selected {
        background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
        border-color: #00a8e6;
        border-width: 3px;
        position: relative;
        box-shadow: 0 16px 40px rgba(252, 211, 77, 0.4), 0 0 0 1px rgba(0, 168, 230, 0.3);
    }

    .plan.yearly.selected:hover {
        box-shadow: 0 20px 50px rgba(252, 211, 77, 0.6), 0 0 0 2px rgba(0, 168, 230, 0.4);
    }

    .plan.yearly.selected::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 168, 230, 0.08) 0%, rgba(0, 168, 230, 0.04) 100%);
        border-radius: 16px;
        z-index: 1;
        pointer-events: none;
    }

    .plan.yearly.selected .plan-header-title,
    .plan.yearly.selected .plan-info-box {
        position: relative;
        z-index: 2;
    }

    .plan.selected::after {
        content: "✓";
        position: absolute;
        top: -16px;
        right: -16px;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #00a8e6 0%, #0074ba 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 900;
        animation: checkmark-appear 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform: scale(1);
        z-index: 100;
        border: 3px solid white;
        box-shadow: 0 6px 18px rgba(0, 168, 230, 0.7);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

@keyframes checkmark-appear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(-90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

    .plan.monthly {
        background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
        border: 1px solid rgba(0, 137, 209, 0.2);

    }

    .plan.monthly:hover {
        box-shadow: 0 18px 45px rgba(186, 230, 253, 0.5);
    }

    .plan.yearly {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        border: 1px solid rgba(245, 158, 11, 0.3);
        color: #1f2937;
    }

    .plan.yearly:hover {
        box-shadow: 0 18px 45px rgba(251, 191, 36, 0.5);
    }

    .plan.yearly .plan-header-title strong {
        color: #1f2937;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    .plan.yearly .plan-info-box {
        background-color: rgba(255, 255, 255, 0.95);
        color: #1f2937;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .plan.yearly.selected .plan-info-box {
        background-color: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 168, 230, 0.2);
    }

.plan-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.badge {
    font-family: var(--font-family-title);
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0074ba 100%);
    box-shadow: 0 2px 8px rgba(0, 137, 209, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

    .badge.suggested {
        font-family: var(--font-family-title);
        background: linear-gradient(135deg, var(--secondary-color) 0%, #f59e0b 100%);
        box-shadow: 0 2px 8px rgba(244, 180, 37, 0.3);
        animation: pulse-glow 2s infinite;
    }

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(244, 180, 37, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(244, 180, 37, 0.5);
    }
}

@keyframes plan-breathing {
    0%, 100% {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 16px 40px rgba(0, 168, 230, 0.3), 0 0 0 1px rgba(0, 168, 230, 0.2);
    }
    50% {
        transform: translateY(-4px) scale(1.035);
        box-shadow: 0 22px 55px rgba(0, 168, 230, 0.45), 0 0 0 2px rgba(0, 168, 230, 0.35);
    }
}

.plan-info-box {
    background-color: white;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 12px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-type {
    color: #2796D4;
    font-weight: 500;
    font-size: 12px;
}

.saving-text {
    color: #f4b425;
    font-weight: bold;
    font-size: 14px;
}

.plan-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plan-description {
    font-family: var(--font-family-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
    color: black;
}


@media screen and (max-width: 768px) {
    .container-check {
        padding: 15px;
    }

    .title {
        font-size: 1.1rem;
        margin: 8px 10px;
        text-align: center;
    }

    .timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding-top: 30px;
        margin: 0 2px;
    }

        .timeline::before {
            top: 18px;
            height: 2px;
            left: 0;
            right: 0;
        }

    .timeline-step {
        align-items: center;
        text-align: center;
    }

    .icon-box {
        width: 26px;
        height: 26px;
        top: -32px;
    }

        .icon-box img {
            max-width: 14px;
            max-height: 14px;
        }

    .step-content p {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .step-content .subtitle {
        font-size: 9px;
        line-height: 1.1;
    }

    .step-content .text {
        font-size: 9px;
        line-height: 1.1;
    }

    .status-toggle {
        font-size: 10px;
        margin: 6px 2px;
        gap: 6px;
    }

    .toggle {
        width: 24px;
        height: 12px;
    }

    .slider:before {
        height: 8px;
        width: 8px;
        left: 2px;
        bottom: 2px;
    }

    .toggle input:checked + .slider:before {
        transform: translateX(12px);
    }

    .ssl-icon {
        max-width: 60px;
        margin: 8px auto;
    }

    .timeline-separator {
        margin: 15px 5px 0 5px;
        height: 1px;
        width: 100%;
    }

    .plan-section {
        margin: 15px 5px 0 5px;
    }

    .plan-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .continue-button {
        width: 100%;
        font-size: 13px;
        padding: 8px;
    }

    .plans {
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
        overflow: visible;
    }

    .plan {
        font-size: 13px;
        padding: 12px;
        margin: 15px 10px;
        overflow: visible;
    }

    .plan-info-box {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-type,
    .saving-text {
        font-size: 11px;
    }

    .plan-header-title {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    .badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .plan.selected::after {
        top: -12px;
        right: -12px;
        width: 24px;
        height: 24px;
        font-size: 14px;
        border: 2px solid white;
        box-shadow: 0 4px 12px rgba(0, 168, 230, 0.6);
    }
}

/* --------- COMPANY SELECTOR STYLES --------- */
.company-selector-content {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

    .company-selector-content p {
        margin: 10px 15px;
    }

.companyLoginLink {
    display: block;
    padding: 12px 16px;
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;

    /* LOGIN-CONSISTENT TYPOGRAPHY */
    font-family: var(--font-family-body);
    font-size: var(--font-size-navbar);
    font-weight: 500;
    line-height: 1.4;
}

.companyLoginLink:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.companyLoginLink:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* COMPANY SELECTOR MODAL TITLES - SAME FONT AS LOGIN */
#companySelector .login-modal-title {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #1f2937;
    margin-top: -3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideUp 0.6s ease-out 0.3s forwards;
}

#companySelector .login-modal-title-two {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle2);
    font-family: var(--font-family-subtitle);
    color: #1f2937;
    margin-top: -3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient( 135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, white) 100% );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideUp 0.6s ease-out 0.3s forwards;
}

#companySelector .login-modal-subtitle {
    font-size: var(--font-size-navbar);
    font-family: var(--font-family-body);
    color: #6b7280;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleSlideUp 0.6s ease-out 0.5s forwards;
}

/* RESPONSIVE FOR COMPANY SELECTOR */
@media (max-width: 768px) {
    #companySelector .login-modal-title {
        font-size: calc(var(--font-size-subtitle) * 0.8);
    }
    
    #companySelector .login-modal-subtitle {
        font-size: calc(var(--font-size-navbar) * 0.9);
        margin-bottom: 1.5rem;
    }
    
    .companyLoginLink {
        font-size: calc(var(--font-size-navbar) * 0.9);
        padding: 10px 14px;
    }
}