/*----------------------------------------
    Login Page - New Design
------------------------------------------*/

:root {
    --lp-primary-color: #FF5757;
    --lp-primary-hover: #e54a4f;
    --lp-text-color: #000000;
    --lp-subtitle-color: #666666;
    --lp-bg-light: #F8F9FA;
    --lp-white: #ffffff;
    --lp-border-color: #E0E4E8;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Image Section */
.login-image-section {
    flex: 1;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.login-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Section */
.login-form-section {
    width: 570px;
    background-color: var(--lp-white);
    display: flex;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lp-subtitle-color) transparent;
}
.dark-theme .login-form-section{
    background-color: #1E1E1E;
}

.login-content-wrapper {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    margin-bottom: 15px;
    height: 100px;
    width: auto;
    object-fit: contain;
}

.welcome-text {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--lp-text-color);
}

.subtitle-text {
    font-size: 14px;
    color: var(--lp-subtitle-color);
    margin: 0;
}

/* Tabs Styling */
.login-tabs-container {
    background-color: #F0F0F1;
    border-radius: 5px;
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid #E5E6E7
}
.dark-theme .login-tabs-container{
    background-color: #282829;
    border: 1px solid #464646;
}

#login-tabs {
    background-color: transparent;
    display: flex;
    height: 44px;
    border: none;
    box-shadow: none;
}

#login-tabs .tab {
    flex: 1;
    height: 44px;
    line-height: 44px;
}

#login-tabs .tab a {
    color: var(--lp-subtitle-color) !important;
    font-weight: 400;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

#login-tabs .tab a.active {
    background-color: var(--lp-primary-color) !important;
    color: var(--lp-white) !important;
    font-weight: 500;
}
.auth-section .form-group, .input-group{
    position: relative;
}
.auth-section .togglePassword {
    position: absolute;
    right: -2px;
    top: 3px;
}
.auth-section .input-field .prefix ~ input {
    width: 100%;
    margin-left: 0;
    padding: 20px 40px;
}
.auth-section .input-field .prefix {
    left: 10px;
    font-size: 20px;
    top: 10px;
}

#login-tabs .indicator {
    display: none;
}

/* Form Fields */
.input-field-wrapper {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--lp-text-color);
}

.input-container {
    position: relative;
}

.input-container i.prefix {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #999;
    font-size: 20px;
}

.input-container input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 15px 0 45px !important;
    border: 1px solid var(--lp-border-color);
    border-radius: 8px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    transition: border-color 0.3s ease;
}

.input-container input:focus {
    border-color: var(--lp-primary-color) !important;
    box-shadow: none !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 0px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.login-as-ext {
    font-size: 13px;
    color: var(--lp-text-color);
}

.forgot-pwd-link {
    font-size: 13px;
    color: var(--lp-subtitle-color);
    text-decoration: none;
    float: right;
}

.forgot-pwd-link:hover {
    text-decoration: underline;
}

.remember-me-container {
    margin-bottom: 25px;
}

.remember-me-checkbox{
    text-align: center;
}
.remember-me-checkbox label {
    font-size: 13px;
    color: var(--lp-subtitle-color);
}

/* Buttons */
.btn-signin {
    background-color: var(--lp-primary-color) !important;
    color: var(--lp-white);
    border: none;
    height: 48px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 6px rgba(255, 90, 95, 0.2);
}

.btn-signin:hover {
    background-color: var(--lp-primary-hover) !important;
    box-shadow: none !important;
}

.btn-sso {
    background-color: var(--lp-white) !important;
    color: var(--lp-subtitle-color);
    border: 1px solid var(--lp-border-color);
    height: 48px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}
 .btn-sso:hover{
    background-color: #F0F0F1 !important;
}

.sso-icon {
    width: 20px;
    height: 20px;
}

.full-width {
    width: 100%;
}

/* Footer */
.login-footer {
    margin-top: 40px;
}

.help-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text-color);
    text-decoration: none;
    margin-bottom: 30px;
}
.dark-theme .help-link {
    color: #f0f0f1;
}
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--lp-subtitle-color);
}

/* .tata-logo {
    height: 20px;
} */

/* Materialize adjustments */
.help-block-error {
    color: #F44336;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.alert.card-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 8px;
}

/* Responsive */
@media screen and (max-height: 700px) {
    .login-form-section {
        padding: 20px 40px;
    }
    .login-header {
        margin-bottom: 10px;
    }
    .login-logo {
        height: 75px;
        margin-bottom: 5px;
    }
    .welcome-text {
        font-size: 20px;
    }
    .login-tabs-container {
        margin-bottom: 15px;
    }
    #login-tabs, #login-tabs .tab {
        height: 40px;
        line-height: 40px;
    }
    .input-field-wrapper {
        margin-bottom: 12px;
    }
    .input-container input, .btn-signin, .btn-sso {
        height: 42px !important;
        line-height: 42px !important;
    }
    .input-container i.prefix {
        top: 10px;
    }
    .toggle-password {
        top: 0px;
    }
    .form-options {
        margin-bottom: 12px;
    }
    .remember-me-container {
        margin-bottom: 15px;
    }
    .login-footer {
        margin-top: 15px;
    }
    .help-link {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 992px) {
    .login-image-section {
        display: none;
    }
    .login-form-section {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .login-form-section {
        padding: 20px;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .text-right {
        text-align: left !important;
    }
}
