/* Import Global Styles */
@import url('global.css');

/* Login Page Specific Styles */
body.page-template-template-login {
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Left Side Background */
.login-bg-section {
    background: radial-gradient(circle at center, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.pegasus-side-container {
    /* Optional: Add a subtle pattern overlay if available */
    background-image: url('../images/pegasus-side.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.pegasus-side-img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px var(--color-black-10));
}

.pegasus-logo {
    max-width: 114px;

    @media screen and (max-width: 1400px) {
        max-width: 80px;
    }
}

.login-decoration-img {
    filter: drop-shadow(0 10px 20px var(--color-black-10));
}

/* Typography */
.welcome-title {
    /* font-family: var(--font-primary, "Open Sans", sans-serif); */
    /* Assuming serif font for "Welcome Back" */
    font-size: 36px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 16px;
    text-transform: uppercase;


}

@media screen and (max-width: 1400px) {
    .welcome-title {
        margin-bottom: 10px;
    }
}

.welcome-subtitle {
    font-size: 16px;
    font-family: var(--font-primary, "Open Sans", sans-serif);
}

/* Login Tabs */
.login-tabs {
    gap: 2rem;
}

.login-tab-btn {
    border: none;
    background: none !important;
    font-weight: 600;
    font-size: 17px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.login-tab-btn:hover {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
    background: none !important;
    box-shadow: none;
}

.login-tab-btn:focus {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
    background: none !important;
    outline: none;
    box-shadow: none;
}

.login-tab-btn.active {
    color: var(--color-dark-blue);
    border-bottom-color: var(--color-dark-blue);
    background: none !important;
    box-shadow: none;
}

.login-tab-btn.active:focus {
    color: var(--color-dark-blue);
    border-bottom-color: var(--color-dark-blue);        
    background: none !important;
    box-shadow: none;
}

#mp-login-otp-container {
    min-height: 296px !important;
}

/* Form Inputs */
.input-group-text {
    background-color: transparent;
}

.form-control:focus {
    box-shadow: none;
}
.fogot-password-text a {
    color: var(--color-dark-blue);
}
.input-group:focus-within {
    border-color: var(--color-gold) !important;
    /* Gold border on focus */
}


/* Buttons */
.btn-theme-gold {
    background-color: var(--color-gold);
    /* Muted Gold */
    color: #fff;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    height: 60px;
    font-size: 16px;
}

.btn-theme-gold:hover {
    background-color: var(--color-gold-alt);
    color: var(--color-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-gold-alpha-30);
}

.dont-have-account {
    margin-top: 34px;
}

.fogot-password-text {
    margin-top: 30px;
    margin-bottom: 38px;
}

/* Links */
.text-theme-gold {
    color: var(--color-gold);
    font-size: 16px;
}

.text-theme-gold:hover {
    color: var(--color-gold-alt);
}

/* OTP Input Boxes */
.otp-boxes {
    gap: 10px;
}

.otp-digit {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: bold;
    color: var(--color-text-dark);
    transition: all 0.2s;
}

.otp-digit:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px var(--color-gold-alpha-10);
    outline: none;
}

/* Error Messages */
.login-message .alert {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* .terms-and-conditions {
    margin-top: 90px;
} */

/* .login-content-area {
    min-height: 300px;
} */
.login-form-wrapper-container {
    max-width: 550px;
}

/* Mobile Adjustments */

@media (max-width: 991.98px) {
    .login-form-wrapper {
        padding: 2rem !important;
        padding-bottom: 0px !important;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
        /* background: #fff; */
    }


    .login-container {
           background: transparent linear-gradient(1deg, var(--color-light-blue)  28%, rgba(255, 255, 255, 0) 46%) 0% 0% no-repeat padding-box; 
        /* background: transparent linear-gradient(1deg, var(--color-bg-gradient-start) 28%, transparent 46%) 0% 0% no-repeat padding-box; */
    }

    .welcome-title {
        font-size: 26px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .btn-theme-gold {
        height: 65px;
        font-size: 16px;
        box-shadow: var(--shadow-md) !important;
    }

    .fogot-password-text {
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .fogot-password-text a {
        color: var(--color-black);
        font-size: 14px;
    }

    .login-tab-btn {
        font-size: 14px;
    }

    .dont-have-account {
        margin-top: 32px;
    }

    .terms-and-conditions {
        display: none;
    }

    .terms-and-conditions-mobile {
        display: block;
        margin: 50px 30px;
    }

    .terms-and-conditions-mobile p {
        font-size: 14px;
        max-width: 330px;
        margin: auto;
    }
}

@media (min-width: 991.98px) {
    .terms-and-conditions-mobile {
        display: none;
    }
}

@media (max-width: 575px) {
    .login-container {
        padding: 0 15px !important;
    }

    .login-form-wrapper {
        padding: 2rem 1rem !important;

    }
}

/* Floating Labels Support for Login Page */
.input-group:focus-within .form-floating label,
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--color-gold);
    /* Gold */
    opacity: 1;
}

.form-floating label {
    color: var(--color-text-muted) !important;
    font-size: 14px !important;
}

/* Ensure padding is correct for floating labels in Login Page */
.form-floating>.form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem;
}

.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Helper Classes */
.spacer-24 {
    width: 24px;
}

.mp-hidden {
    display: none;
}

/* Password Toggle */
.password-toggle-icon {
    cursor: pointer;
}

/* Terms and Conditions */
.terms-conditions-text {
    font-size: 14px;
    opacity: 0.6;
}

/* Forgot Password */
.fp-terms-text {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Resend OTP Button Hover */
#mp-back-to-login:hover,
#mp-resend-login-otp-btn:hover,
#resend-code-btn:hover,
#mp-otp-resend-btn:hover,
#mp-mfa-otp-resend-btn:hover {
    color: var(--color-black) !important;
}