/* Custom Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FormValidation Styling */
.form-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-input.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Password Toggle Styling */
.input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #495057;
}

.password-toggle.active {
    color: #007bff;
}

/* Error message styling */
.fv-plugins-message-container {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.fv-plugins-message-container .fv-help-block {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #dfe6ee;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 10px;
}

.forgot-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 10px;
}
.d-flex{
    display: flex;
}
.gap-2{
    gap: 10px;
}

/* Left Section - Brand & Illustration */
.login-left {
    flex: 0 0 50%;
    background: #34307c;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.brand-logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.illustration-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.illustration {
    width: 100%;
    /* height: 100%; */
    background: #7cafb0;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80%;
}

.login-illustration-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translate(-50%, -50%);
}

/* .illustration::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
} */

.illustration-elements {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.illustration-element {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.copyright {
    color: white;
    font-size: 12px;
    opacity: 0.8;
}

/* Right Section - Login Form */
.login-right {
    flex: 0 0 50%;
    background: #F8F8F8;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forgot-container .login-right {
    flex: 0 0 100%;
    background: #F8F8F8;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: #584adf;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 9;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #584adf;
}

.remember-me label {
    font-size: 14px;
    color: #333;
}

.forgot-password {
    color: #584adf;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.login-button {
    width: 100%;
    padding: 15px;
    background: #584ade;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-button:hover {
    background: #5a4acd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.3);
}

.signup-link {
    text-align: center;
    margin-bottom: 20px;
}

.signup-link span {
    color: #666;
    font-size: 14px;
}

.signup-link a {
    color: #584adf;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.signup-link a:hover {
    text-decoration: underline;
}

.support-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.support-link a {
    color: #584adf;
    text-decoration: none;
    font-weight: 500;
}

.support-link a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    position: relative;
}

.alert-custom {
    background: #f8f9fa;
    border-left: 4px solid #584adf;
}

.alert-light-primary {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.alert-light-danger {
    background: #ffebee;
    border-left-color: #f44336;
}

.alert-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
}

.alert-text {
    display: inline-block;
    font-size: 14px;
    color: #333;
}

.alert-close {
    position: relative;
}

.alert-close button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.alert-close button:hover {
    color: #333;
}

.mobile-only{
    display: none;
}

/* Enhanced Responsive Design */
@media (max-width: 1300px) {
    .login-container {
        max-width: 1000px;
        height: auto;
    }
    .forgot-container {
        max-width: 500px;
        height: auto;
    }

    .login-left {
        padding: 35px;
    }

    .login-right {
        padding: 25px 50px;
    }
}

@media (max-width: 1200px) {
    .login-container {
        max-width: 1000px;
        height: auto;
    }
    .forgot-container {
        max-width: 500px;
        height: auto;
    }

    .login-left {
        padding: 35px;
    }

    .login-right {
        padding: 25px 50px;
    }
}

@media (max-width: 992px) {
    .login-container {
        max-width: 900px;
        height: auto;
    }
    .forgot-container {
        max-width: 500px;
        height: auto;
    }

    .login-left {
        padding: 30px;
    }

    .login-right {
        padding: 40px;
    }

    .login-title {
        font-size: 28px;
    }

    .illustration {
        height: 250px;
    }

    .forgot-container .login-right {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 95%;
        margin: 0;
        border-radius: 15px;
    }
    .forgot-container {
        flex-direction: column;
        height: auto;
        max-width: 95%;
        margin: 0;
        border-radius: 15px;
    }

    .login-left {
        flex: none;
        height: auto;
        padding: 25px;
    }

    .login-right {
        flex: none;
        padding: 35px 25px;
    }

    .illustration {
        height: 120px;
    }

    .illustration-elements {
        gap: 15px;
        padding: 15px;
    }

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

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

    .login-form {
        max-width: 100%;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        align-self: flex-end;
    }

    .desktop-only{
        display: none;
    }
    .mobile-only{
        display: block;
        text-align: center;
        margin-top: 15px;
        font-size: 12px;
        color: #666;
    }

    .mobile-only .brand-logo{
        color: #333;
        text-align: center;
        margin-top: 15px;
    }

    .forgot-container .login-right {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .login-container {
        margin: 0;
        border-radius: 10px;
    }

    .login-left {
        padding: 20px;
        height: auto;
    }

    .login-right {
        padding: 25px 20px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .illustration {
        height: 100px;
    }

    .illustration-elements {
        gap: 10px;
        padding: 10px;
    }

    .illustration-element {
        font-size: 10px;
    }

    .form-input {
        padding: 12px 15px 12px 45px;
        font-size: 15px;
    }

    .input-icon {
        font-size: 16px;
        left: 15px;
    }

    .login-button {
        padding: 12px;
        font-size: 15px;
    }

    .copyright {
        font-size: 11px;
    }

    .forgot-container .login-right {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .login-container {
        border-radius: 8px;
    }

    .login-left {
        padding: 15px;
        height: auto;
    }

    .login-right {
        padding: 20px 15px;
    }

    .brand-logo {
        font-size: 18px;
    }

    .login-title {
        font-size: 18px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .illustration {
        height: 80px;
    }

    .illustration-elements {
        gap: 8px;
        padding: 8px;
    }

    .illustration-element {
        font-size: 9px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-input {
        padding: 10px 12px 10px 40px;
        font-size: 14px;
        border-radius: 8px;
    }

    .input-icon {
        font-size: 14px;
        left: 12px;
    }

    .login-button {
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .remember-me label {
        font-size: 13px;
    }

    .forgot-password {
        font-size: 13px;
    }

    .signup-link span {
        font-size: 13px;
    }

    .signup-link a {
        font-size: 13px;
    }

    .support-link {
        font-size: 12px;
    }

    .copyright {
        font-size: 10px;
    }

    .forgot-container .login-right {
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .login-left {
        padding: 12px;
        height: auto;
    }

    .login-right {
        padding: 15px 12px;
    }

    .brand-logo {
        font-size: 16px;
    }

    .login-title {
        font-size: 18px;
    }

    .login-subtitle {
        font-size: 11px;
    }

    .illustration {
        height: 60px;
    }

    .form-input {
        padding: 8px 10px 8px 35px;
        font-size: 13px;
    }

    .input-icon {
        font-size: 12px;
        left: 10px;
    }

    .login-button {
        padding: 8px;
        font-size: 13px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }

    .login-container {
        height: auto;
        min-height: 400px;
    }

    .login-left {
        height: auto;
        padding: 20px;
    }

    .login-right {
        padding: 25px;
    }

    .illustration {
        height: 250px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }
}

.align-items-center{
    align-items:center;
}
.justify-content-between{
    justify-content: space-between;
}
