/* ==========================================================================
   Oriento Pharmacy - Auth Pages (login, register, forgot/reset/confirm
   password, verify-email). Card-over-illustration layout matching the
   Pharmacy Management System login design.
   ========================================================================== */

:root {
    --oa-blue: #1c64d1;
    --oa-blue-dark: #124a9e;
    --oa-navy: #16305c;
    --oa-green: #1fa06a;
    --oa-text: #1f2937;
    --oa-muted: #6b7280;
    --oa-border: #e3e8ef;
    --oa-bg-soft: #f7f9fc;
}

html, body {
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #eef4fb;
    background-image: url("../img/figure/bg22-l.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-family: "Poppins", "Roboto", sans-serif;
    padding: 32px 6%;
    overflow-x: hidden;
}

.auth-card-wrap {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: 4%;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(22, 48, 92, 0.14);
    padding: 34px 40px 30px;
    text-align: center;
}

.auth-logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6fc;
    box-shadow: 0 0 0 8px rgba(28, 100, 209, 0.06);
    overflow: hidden;
}

.auth-logo-badge img {
    max-width: 68%;
    max-height: 68%;
    object-fit: contain;
}

.auth-company-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--oa-navy);
    margin: 0 0 4px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--oa-navy);
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--oa-muted);
    margin: 0 0 20px;
}

.auth-status {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf0d1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

.auth-form {
    text-align: left;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--oa-text);
    margin-bottom: 6px;
}

.auth-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon > i.auth-input-leading {
    position: absolute;
    left: 15px;
    color: #9aa5b1;
    font-size: 15px;
    pointer-events: none;
}

.auth-input-icon input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--oa-border);
    background: var(--oa-bg-soft);
    border-radius: 10px;
    padding: 0 15px 0 42px;
    font-size: 14px;
    color: var(--oa-text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input-icon input:focus {
    border-color: var(--oa-blue);
    box-shadow: 0 0 0 3px rgba(28, 100, 209, 0.12);
    background: #fff;
}

.auth-input-icon input::placeholder {
    color: #a3acb8;
}

.auth-toggle-password {
    position: absolute;
    right: 15px;
    color: #9aa5b1;
    cursor: pointer;
    font-size: 14px;
}

.auth-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--oa-muted);
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--oa-blue);
    cursor: pointer;
}

.auth-link {
    font-size: 13px;
    color: var(--oa-blue);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--oa-blue-dark);
    text-decoration: underline;
}

.auth-btn-primary {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f7bf0, #1454c9);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 0;
    cursor: pointer;
    transition: filter .2s ease;
}

.auth-btn-primary:hover {
    filter: brightness(1.06);
}

.auth-help-text {
    font-size: 13px;
    color: var(--oa-muted);
    margin: 0 0 22px;
    line-height: 1.6;
}

.auth-btn-text {
    background: none;
    border: 0;
    color: var(--oa-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.auth-btn-text:hover {
    color: var(--oa-blue-dark);
    text-decoration: underline;
}

.auth-bottom-note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--oa-muted);
}

.auth-footer-note {
    text-align: center;
    font-size: 13px;
    color: #52607a;
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-footer-note i {
    color: var(--oa-blue);
}

@media (max-width: 991px) {
    .auth-page {
        background-image: none;
        background: linear-gradient(160deg, #eaf2fb 0%, #eaf7f0 100%);
        justify-content: center;
        padding: 40px 5%;
    }

    .auth-card-wrap {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 34px 22px 28px;
    }
}

/* Wholesale Trader login ------------------------------------------------- */
.login-page {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: clamp(54px, 9.5vh, 86px) 2.2% clamp(24px, 4vh, 36px);
    background-color: #edf3fa;
    background-image: url("../img/figure/bg22-l.jpg");
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #101419;
    overflow: hidden;
}

.login-panel {
    position: relative;
    right: 28px;
    bottom: 38px;
    width: min(520px, 100%);
    min-height: 766px;
    padding: 33px 48px 29px;
    border: 1px solid rgba(218, 226, 232, .7);
    border-radius: 27px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 45px rgba(40, 58, 74, .10);
    text-align: center;
    backdrop-filter: blur(5px);
}

.login-brand { display: flex; align-items: center; justify-content: center; gap: 23px; height: 101px; }
.login-mark { position: relative; color: #00542f; font-size: 73px; line-height: 1; }
.login-mark .fa-shopping-cart { transform: scaleX(1.12); }
.login-leaf {
    position: absolute; top: -2px; right: 0; width: 28px; height: 42px;
    border-radius: 100% 0 100% 0; background: #55b94f; transform: rotate(17deg);
    box-shadow: 0 0 0 3px #fff;
}
.login-leaf::after {
    content: ""; position: absolute; left: 13px; bottom: 3px; width: 2px; height: 32px;
    background: rgba(255,255,255,.75); transform: rotate(40deg); transform-origin: bottom;
}
.login-established { margin-top: 13px; color: #111820; font-size: 13px; line-height: 1.4; text-align: left; }
.login-company { display: flex; justify-content: center; gap: 6px; margin-top: -1px; font-size: 29px; font-weight: 700; letter-spacing: -.9px; line-height: 1.12; }
.login-company-green { color: #08753f; }
.login-system-name { margin: 2px 0 8px; font-size: 17px; line-height: 1.25; }
.login-motto { display: flex; align-items: center; justify-content: center; gap: 12px; color: #303946; font-size: 9px; font-weight: 500; letter-spacing: 3px; white-space: nowrap; }
.login-motto span { width: 49px; height: 1px; background: #c9d1d7; }
.login-title { margin: 32px 0 1px; font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: -.5px; }
.login-subtitle { margin: 0 0 27px; color: #5c6570; font-size: 14px; }

.login-field {
    position: relative; display: flex; align-items: center; height: 51px; margin-bottom: 13px;
    border: 1px solid #cbd4dd; border-radius: 10px; background: rgba(249, 251, 252, .75);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-field:focus-within { border-color: #26894c; background: #fff; box-shadow: 0 0 0 3px rgba(38, 137, 76, .11); }
.login-field.has-error { border-color: #dc2626; }
.login-leading-icon { position: absolute; left: 20px; width: 18px; color: #101820; font-size: 18px; }
.login-field input { width: 100%; height: 100%; padding: 0 51px 0 62px; border: 0; outline: 0; background: transparent; color: #17202a; font-family: inherit; font-size: 14px; }
.login-field input::placeholder { color: #8390a1; opacity: 1; }
.login-password-toggle { position: absolute; right: 13px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: #7c8999; cursor: pointer; }
.login-error { display: block; margin: -7px 0 8px 4px; color: #dc2626; font-size: 11px; text-align: left; }

.login-options { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 20px; font-size: 13px; }
.login-remember { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.login-remember input { position: absolute; opacity: 0; pointer-events: none; }
.login-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #b7c2cb; border-radius: 5px; background: #fff; color: transparent; font-size: 11px; }
.login-remember input:checked + .login-check { border-color: #298848; background: #298848; color: #fff; }
.login-remember input:focus-visible + .login-check { box-shadow: 0 0 0 3px rgba(38,137,76,.2); }
.login-options a { color: #08753f; font-weight: 500; text-decoration: none; }
.login-options a:hover { text-decoration: underline; }

.login-submit { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; height: 51px; border: 0; border-radius: 10px; background: linear-gradient(100deg, #228746, #19803e); box-shadow: 0 8px 17px rgba(24, 128, 62, .16); color: #fff; font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .2s, filter .2s; }
.login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-benefit { display: flex; align-items: center; gap: 18px; min-height: 66px; margin-top: 38px; padding: 10px 19px; border-radius: 13px; background: linear-gradient(100deg, #e5f3e9, #e3f2e6); text-align: left; }
.login-benefit > i { color: #188342; font-size: 27px; transform: rotate(-18deg); }
.login-benefit p { flex: 1.4; margin: 0; font-size: 10px; line-height: 1.45; }
.login-benefit p:last-child { flex: 1; color: #176b3b; }
.login-benefit > span { width: 1px; height: 34px; background: #5c9f73; }

.forgot-panel { min-height: 650px; }
.forgot-title { margin-top: 35px; }
.forgot-subtitle { max-width: 370px; margin-right: auto; margin-left: auto; line-height: 1.65; }
.forgot-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #08753f; font-size: 13px; font-weight: 500; text-decoration: none; }
.forgot-back:hover { text-decoration: underline; }
.forgot-benefit { margin-top: 31px; }

@media (max-height: 850px) and (min-width: 992px) {
    .login-page { padding-top: 52px; padding-bottom: 22px; }
    .login-panel { min-height: auto; padding-top: 24px; padding-bottom: 22px; transform: scale(.92); transform-origin: bottom center; }
}

@media (max-width: 1100px) {
    .login-page { height: auto; align-items: center; padding: 38px 24px; overflow-y: auto; background-image: linear-gradient(rgba(237,243,250,.74), rgba(237,243,250,.74)), url("../img/figure/bg22-l.jpg"); background-position: 68% center; }
    .login-panel { right: auto; bottom: auto; }
}

@media (max-width: 560px) {
    .login-page { padding: 18px 13px; background-image: none; }
    .login-panel { min-height: auto; padding: 27px 20px 22px; border-radius: 22px; }
    .login-brand { height: 85px; }
    .login-mark { font-size: 61px; }
    .login-leaf { width: 24px; height: 35px; }
    .login-company { flex-wrap: wrap; gap: 0 5px; font-size: 24px; }
    .login-title { margin-top: 26px; }
    .login-subtitle { font-size: 12px; }
    .login-motto { gap: 7px; font-size: 7px; letter-spacing: 2px; }
    .login-motto span { width: 27px; }
    .login-benefit { display: none; }
}
