/* Login Page Styles based on Figma design */


body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background-color: #F59816;
    border-color: #F59816;
    color: white;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.version-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: "Public Sans", sans-serif;
    font-size: 12px;
    color: rgba(33, 43, 54, 0.6);
    z-index: 1000;
    font-weight: 400;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active,
    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        background-color: #F59816;
        border-color: #F59816;
        color: white;
        box-shadow: 0 0 0 0.2rem rgba(245, 152, 22, 0.25);
    }

    .btn-primary:disabled,
    .btn-primary.disabled {
        background-color: #F59816;
        border-color: #F59816;
        opacity: 0.65;
    }

.login-page {
    font-family: "Public Sans", sans-serif;
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    justify-content: center;
    align-items: center;
    background-image: url('/images/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

/* Login Form Section */
.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    position: relative;
    z-index: 2;
    background: transparent;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

.login-form-container {
    max-width: 403px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-custom-logo-container {
    max-width: 403px;
    max-height: 150px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.login-custom-logo-container img {
    max-width: 100%;
    max-height: 118px; /* 150px - 32px padding */
    height: auto;
    object-fit: contain;
}

/* Register form specific styles */
.register-form-container {
    max-width: 500px;
}

.background-logo {
    position: absolute;
    top: calc(50% - 290px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    opacity: 0.75;
    pointer-events: none;
}

.register-logo {
    top: calc(50% - 385px);
}

.forgot-password-logo {
    top: calc(50% - 120px);
}

.reset-password-logo {
    top: calc(50% - 175px);
}

.login-logo {
    width: 100%;
    height: 100%;
    animation: spin 90s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.login-title-section {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.logo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-form-section h1 {
    font-family: "Public Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: rgb(33, 43, 54);
    margin: 0;
    text-align: left;
    letter-spacing: 0.33%;
}

.login-subtitle {
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    color: rgb(33, 43, 54);
    margin: 0;
    display: block !important;
    text-align: left;
}

.login-form-section p {
    display: none;
}

.login-form {
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

    .form-group label {
        display: none;
    }

.validation-summary-errors {
    display: none;
}

.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
    font-family: "Public Sans", sans-serif;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1.6px solid #E0E2E9;
    border-radius: 8px;
    font-family: "Public Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #171725;
    transition: border-color 0.3s ease;
    height: 48px;
}

    .form-control.input-validation-error {
        border-color: #dc3545;
    }

        .form-control.input-validation-error:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        }

    .form-control:focus {
        outline: none;
        border-color: #F59816;
        box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
    }

    .form-control::placeholder {
        color: #969AB8;
    }

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #9FA2BE;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #F59816;
        text-decoration: none;
    }

.btn {
    font-family: "Public Sans", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 64px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
}

.btn-secondary {
    display: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #969AB8;
    font-size: 14px;
    font-weight: 500;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background-color: #E4E6EC;
        margin: 0 20px;
    }

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 1.6px solid #E0E2E9;
    border-radius: 8px;
    background-color: white;
    color: #171725;
    font-family: "Public Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    text-decoration: none;
}

    .social-btn:hover {
        background-color: #f8f9fa;
        border-color: #d1d3d8;
        text-decoration: none;
    }

    .social-btn img {
        width: 24px;
        height: 24px;
    }

.signup-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    margin-top: 20px;
}

    .signup-link span {
        font-size: 15px;
        color: #969AB8;
        letter-spacing: 0.67%;
    }

    .signup-link a {
        font-size: 15px;
        font-weight: 600;
        color: #FDA92D;
        text-decoration: none;
        transition: color 0.3s ease;
        letter-spacing: 0.67%;
    }

        .signup-link a:hover {
            color: #F59816;
        }

/* Responsive styles */
@media (max-width: 1200px) {
    .login-form-section {
        padding: 64px;
    }
}

@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }

    .login-form-section {
        max-width: 100%;
        padding: 32px;
    }

    .login-form-container {
        max-width: 100%;
    }
}

.loading-button {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.terms-agreement {
    font-size: 10px;
    color: #969AB8;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

    .terms-agreement a {
        color: #FDA92D;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .terms-agreement a:hover {
            color: #F59816;
            text-decoration: none;
        }

.form-text {
    font-size: 12px;
    color: #969AB8;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

    .alert p {
        display: block !important;
        margin: 0 0 8px 0;
    }

        .alert p:last-child {
            margin-bottom: 0;
        }

.alert-success {
    background-color: #E9FBF0;
    border: 1px solid #C6F6D5;
    color: #276749;
}

.back-to-login {
    width: 100%;
}

.login-subtitle {
    font-family: "Public Sans", sans-serif;
    font-size: 14px;
    color: #969AB8;
    margin: 8px 0 0 0;
    display: block !important;
    line-height: 1.5;
}

.name-fields {
    display: flex;
    gap: 16px;
    width: 100%;
}

    .name-fields .form-group {
        flex: 1;
        margin-bottom: 16px;
    }
