/* =========================================================
           RESET
        ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #087c45;
    --green-dark: #056b3b;
    --green-light: #edf8f2;
    --text: #172033;
    --muted: #667085;
    --border: #dfe4e8;
    --white: #ffffff;
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--text);
    background: #f7faf8;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.page {
    min-height: 100vh;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(180deg, #f0f8f4 0%, #ffffff 100%); */
}

.container {
    width: 100%;
    max-width: 1510px;
    min-height: calc(100vh - 20px);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 230, 225, 0.8);
    box-shadow: 0 8px 30px rgba(20, 65, 45, 0.08);
}

.container::before {
    content: "";
    position: absolute;
    inset: 105px 0 0 0;
    z-index: 0;
    background-image: url("../images/reli/left-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.container::after {
    content: "";
    position: absolute;
    inset: 105px 0 0 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.6)
    );
    pointer-events: none;
}

.header {
    height: 105px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e9edef;
}

.logo {
    width: 235px;
    height: auto;
    display: block;
}

.main {
    position: relative;
    z-index: 3;
    padding: 120px 45px 45px;
}

.page-title {
    text-align: center;
    margin-bottom: 35px;
}

.page-title h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #111b2e;
    margin-bottom: 8px;
}

.page-title p {
    color: #586274;
    font-size: 17px;
    line-height: 1.5;
}

.login-options {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 95px minmax(0, 1fr);
    align-items: stretch;
}

.login-card {
    min-height: 510px;
    padding: 30px 38px;
    border-radius: 15px;
    border: 1px solid rgba(220, 225, 230, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 25px rgba(20, 30, 40, 0.045);
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 19px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 34px;
    height: 34px;
}

.card-title {
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 7px;
}

.card-description {
    text-align: center;
    color: #667085;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 27px;
}

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

.form-control {
    width: 100%;
    height: 58px;
    padding: 0 17px;
    border: 1px solid #d9dfe4;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #737d89;
}

.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8, 124, 69, 0.08);
}

.continue-btn {
    width: 100%;
    height: 57px;
    margin-top: 4px;
    border: none;
    border-radius: 7px;
    background: var(--green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.continue-btn:hover {
    background: var(--green-dark);
}

.continue-btn:active {
    transform: scale(0.99);
}

.button-inner {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-arrow {
    position: absolute;
    right: 18px;
    font-size: 25px;
    line-height: 1;
}

.or-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.or-divider::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    background: #dfe4e8;
}

.or-circle {
    width: 68px;
    height: 68px;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dfe4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #202630;
}

/* =========================================================
           CAPTCHA
        ========================================================= */
.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px 58px;
    gap: 13px;
    align-items: center;
    margin-bottom: 17px;
}

.captcha-code {
    height: 58px;
    border-radius: 7px;
    background: #edf8f2;
    color: var(--green);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn {
    height: 58px;
    border: 1px solid #dfe4e8;
    border-radius: 7px;
    background: #ffffff;
    color: #657080;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    color: var(--green);
    background: #f8faf9;
}

.refresh-btn svg {
    width: 23px;
    height: 23px;
}

/* =========================================================
           TABLET
        ========================================================= */

@media (max-width: 1050px) {
    .main {
        padding: 30px 25px 35px;
    }

    .login-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .or-divider {
        height: 65px;
    }

    .or-divider::before {
        width: 100%;
        height: 1px;
        left: 0;
        top: 50%;
    }

    .or-circle {
        width: 62px;
        height: 62px;
    }

    .login-card {
        min-height: auto;
    }
}

/* =========================================================
           MOBILE
        ========================================================= */
@media (max-width: 650px) {
    .page {
        padding: 0;
    }

    .container {
        min-height: 100vh;
        border-radius: 0;
    }

    .container::before,
    .container::after {
        inset: 85px 0 0 0;
    }

    .header {
        height: 85px;
    }

    .logo {
        width: 190px;
    }

    .main {
        padding: 25px 16px 30px;
    }

    .page-title {
        margin-bottom: 25px;
    }

    .page-title h1 {
        font-size: 27px;
    }

    .page-title p {
        font-size: 14px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .captcha-row {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .captcha-row .form-control {
        grid-column: 1 / -1;
    }

    .captcha-code {
        min-width: 120px;
    }
}

.panloginbutton {
    margin-top: 80px;
}

/* =========================================================
   SHORT LAPTOP SCREENS
   ========================================================= */

@media (min-width: 1051px) and (max-height: 800px) {
    .main {
        padding: 35px 40px 30px;
    }

    .login-card {
        min-height: 430px;
        padding: 25px 32px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 14px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .card-description {
        margin-bottom: 20px;
    }

    .form-control,
    .captcha-code,
    .refresh-btn {
        height: 52px;
    }

    .continue-btn {
        height: 52px;
    }

    .captcha-row {
        margin-bottom: 14px;
    }

    .panloginbutton {
        margin-top: 15px;
    }
}

@media (max-width: 1050px) {
    .main {
        padding: 30px 25px 35px;
    }

    .login-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .or-divider {
        height: 65px;
    }

    .or-divider::before {
        width: 100%;
        height: 1px;
        left: 0;
        top: 50%;
    }

    .or-circle {
        width: 62px;
        height: 62px;
    }

    .login-card {
        min-height: auto;
    }

    .panloginbutton {
        margin-top: 20px;
    }
}