﻿/************************** Page Setup /***************************/

.login-button {
    background-color: #10A4FF !important;
    border-color: #0d94ff !important;
}

/*--------------------START :: Login CSS--------------- */

.login-page {
    padding-top: 0;
}

.login-body {
    width: 100%;
    min-height: 100vh;
    overflow: auto;
}

    .login-body .logo {
        display: block;
        justify-content: center;
    }

        .login-body .logo a {
            margin-bottom: 30px;
            width: 200px;
        }

            .login-body .logo a img {
                max-width: 75%;
            }

.formBody {
    max-width: 350px;
    width: 100%;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--blue-text);
}

    .logo h1 strong {
        font-weight: 700;
    }

.logintext h2 {
    font-weight: normal;
    font-size: 1.8rem;
    color: black;
}

.right-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 520px;
    min-height: 100vh;
    background-color: #ffffff;
    float: right;
    margin: 0;
    position: relative;
    padding-bottom: 30px;
}

.login-from {
    width: 70%;
}

.toggle-password {
    width: 20px;
    height: 22px;
    position: absolute;
    top: 30px;
    right: 10px;
    cursor: pointer;
    background: url(../img/icon_showPw.png) no-repeat center;
    background-size: 100%;
}

    .toggle-password.hide_pw {
        background: url(../img/icon_hidePw.png) no-repeat center;
        background-size: 100%;
    }

.login-button {
    width: 100%;
    background: var(--gradient-bg);
    color: #fff;
    border: none;
    padding: 5px;
    box-shadow: 0px 3px 12px #0000003e;
    border-radius: 8px;
    height: 43px;
    font-family: "rns_milesbold";
}

.register-button {
    width: 100%;
    border: none;
    padding: 10px;
    box-shadow: 0px 3px 12px #0000003e;
    border-radius: 8px;
    height: 43px;
    font-family: "rns_milesbold";
}

.login-body .form-label.small {
    font-family: "rns_milesmedium";
}

.eclerx-captcha img {
    margin-bottom: 1rem !important;
}

.captcha-error {
    margin-top: 1rem !important;
    list-style-type: none;
    color: #dc3545 !important;
}

    .captcha-error li {
        list-style-type: none;
    }

.centered {
    text-align: center;
}
/*--------------------END :: Login CSS--------------- */

@media (max-width: 991.98px) {
    .right-container {
        width: 100%;
    }
}

.right-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 520px;
    min-height: 100vh;
    background-color: #ffffff;
    float: right;
    margin: 0;
    position: relative;
    padding-bottom: 30px;
}

@media (max-width: 991.98px) {
    .right-container {
        width: 100%;
    }
}


.middle-login-box {
    z-index: 100;
    margin: 0 auto;
    padding-top: 40px;
}

    .middle-login-box h1 {
        font-size: 170px;
    }

.wrapper .middle-login-box {
    margin-top: 140px;
}


.btn-refresh::before {
    content: "\f021";
    font-family: "FontAwesome";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.login-button, .register-button {
    font-weight: 400;
    font-size: 16px;
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.login-divider span {
    padding: 0 10px;
}

.btn-external-auth {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.btn-external-auth:hover {
    background-color: #f5f5f5;
    color: #333;
}

.btn-aws-signin {
    width: 100%;
    border: 1px solid #e0aa0d;
    padding: 10px;
    border-radius: 8px;
    background-color: #ffc10f;
    color: #0d1117;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-aws-signin:hover {
    background-color: #e6ae0d;
    color: #0d1117;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
}


.field-error-text, span.field-validation-error {
    color: #cc5965;
    display: inline-block;
    margin-top: 5px;
    margin-left: 5px;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 500;
}

.validation-summary-errors {
    color: #cc5965;
    display: inline-block;
    margin-left: 5px;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.validation-summary-errors {
    color: #ed5565;
    display: inline-block;
    margin-left: 5px;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.field-error-text {
    margin: 0;
}

    .field-error-text li, .field-error-text ul {
        list-style-type: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

.left-container {
    flex: 1;
    background-image: url(../img/login-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-icon {
    width: 300px;
}

.btn-refresh {
    padding: .375rem .40rem !important;
}

.login-controls {
    width: 300px !important;
}

.verify-logo {
    height: 100px;
    margin-top: 100px;
}

h2 {
    font-size: 20px;
    padding-bottom: 15px;
}

.icheckbox_square-blue, .iradio_square-blue {
    padding-top: 1px;
}

#dntCaptchaImg {
    border: 1px solid #88888844;
}

.form-group:has(.input-validation-error) {
    margin-bottom: 0.1rem;
}

.timeout-image {
    height: 200px;
}

/* -------------------- Accept Terms page -------------------- */
.accept-terms-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 32px 40px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f0f2f5 0%, #e8eaee 100%) !important;
}

/* Override .right-container on Accept Terms */
.accept-terms-page .right-container {
    width: 100% !important;
    max-width: 960px !important;
    min-height: 0 !important;
    float: none !important;
    background-color: transparent !important;
    padding-bottom: 1rem !important;
}

.accept-terms-page .accept-terms-container {
    max-width: 960px !important;
    width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box;
}

.accept-terms-page .accept-terms-inner {
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.accept-terms-page .login-controls.accept-terms-controls {
    width: 100% !important;
    max-width: 100%;
}

/* Header: logo + title + meta */
.accept-terms-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.accept-terms-logo {
    margin-bottom: 1.25rem;
}

.accept-terms-page .accept-terms-logo .logo-icon {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.accept-terms-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 0 0.35rem 0 !important;
    letter-spacing: -0.02em;
}

.accept-terms-meta {
    font-size: 0.9rem;
    color: #6c757d !important;
    margin: 0 !important;
}

/* Terms content card */
.accept-terms-content-card {
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 20px 28px !important;
    width: 100% !important;
    box-sizing: border-box;
    border: none !important;
    border-radius: 12px !important;
    background: #fff !important;
    margin: 0 0 1.5rem 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.accept-terms-content-card h1,
.accept-terms-content-card h2,
.accept-terms-content-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.accept-terms-content-card h1:first-child,
.accept-terms-content-card h2:first-child,
.accept-terms-content-card h3:first-child {
    margin-top: 0;
}

.accept-terms-content-card p {
    margin-bottom: 0.6rem;
}

.accept-terms-content-card ol,
.accept-terms-content-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.accept-terms-content-card li {
    margin-bottom: 0.35rem;
}

/* Scrollbar */
.accept-terms-content-card::-webkit-scrollbar {
    width: 8px;
}

.accept-terms-content-card::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.accept-terms-content-card::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 4px;
}

.accept-terms-content-card::-webkit-scrollbar-thumb:hover {
    background: #909090;
}

/* Form and buttons */
.accept-terms-form {
    margin-bottom: 0 !important;
}

.accept-terms-page .accept-terms-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.accept-terms-page .accept-terms-buttons .btn {
    width: auto !important;
    min-width: 140px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
}

.accept-terms-page .accept-terms-buttons .btn:hover {
    transform: translateY(-1px);
}

.accept-terms-page .btn-accept.btn-success {
    background-color: #18a689 !important;
    border-color: #18a689 !important;
    box-shadow: 0 2px 8px rgba(24, 166, 137, 0.35) !important;
}

.accept-terms-page .btn-accept.btn-success:hover,
.accept-terms-page .btn-accept.btn-success:focus {
    background-color: #159a7d !important;
    border-color: #159a7d !important;
    box-shadow: 0 3px 12px rgba(24, 166, 137, 0.4) !important;
}

.accept-terms-page .btn-decline {
    color: #fff !important;
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

.accept-terms-page .btn-decline:hover,
.accept-terms-page .btn-decline:focus {
    color: #fff !important;
    background-color: #495057 !important;
    border-color: #454d54 !important;
}

/* Footer */
.accept-terms-footer {
    margin-top: 2rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accept-terms-app-version {
    font-size: 0.75rem;
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .accept-terms-page {
        padding: 20px 16px !important;
    }

    .accept-terms-page .accept-terms-container,
    .accept-terms-page .accept-terms-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .accept-terms-header {
        margin-bottom: 1.25rem;
    }

    .accept-terms-page .accept-terms-logo .logo-icon {
        max-width: 85%;
    }

    .accept-terms-title {
        font-size: 1.5rem !important;
    }

    .accept-terms-content-card {
        padding: 16px 20px !important;
        max-height: 240px !important;
    }

    .accept-terms-page .accept-terms-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .accept-terms-page .accept-terms-buttons .btn {
        width: 100% !important;
        min-width: 0 !important;
    }

    .accept-terms-footer {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
}