* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, sans-serif;
    color: #073c29;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 224, 138, 0.20), transparent 22%),
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.20), transparent 26%),
        radial-gradient(circle at 86% 84%, rgba(15, 166, 102, 0.24), transparent 30%),
        linear-gradient(135deg, #043d2b 0%, #08724d 48%, #e5f5ed 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(120deg, black, transparent 72%);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    align-items: center;
    gap: 48px;
    padding: 48px 7%;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    width: 860px;
    height: 860px;
    right: -345px;
    top: -345px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12);
}

.login-page::after {
    content: "";
    position: absolute;
    width: 780px;
    height: 290px;
    left: -180px;
    bottom: -130px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.10);
    transform: rotate(-8deg);
}

.bg-orb {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(0.2px);
}

.bg-orb-1 {
    width: 210px;
    height: 210px;
    left: 4%;
    top: 8%;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.075);
    animation: floatSoft 7s ease-in-out infinite;
}

.bg-orb-2 {
    width: 142px;
    height: 142px;
    right: 9%;
    bottom: 10%;
    border-radius: 10px !important;
    background: rgba(255, 224, 138, 0.20);
    transform: rotate(14deg);
    animation: floatSoft 8s ease-in-out infinite reverse;
}

.bg-orb-3 {
    width: 78px;
    height: 78px;
    right: 41%;
    top: 18%;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.10);
    transform: rotate(20deg);
    animation: pulseOrb 4.5s ease-in-out infinite;
}

.login-hero {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 720px;
    animation: fadeLeft 0.72s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 10px !important;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
}

.hero-badge span {
    color: #ffe08a;
}

.login-hero h1 {
    margin: 0;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -2.4px;
    text-transform: uppercase;
    font-size: clamp(48px, 5.5vw, 86px);
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.login-hero h1 span {
    display: block;
    margin-top: 8px;
    color: #ffe08a;
    font-size: clamp(34px, 4vw, 64px);
    letter-spacing: -1.8px;
    text-shadow: none;
}

.hero-text {
    max-width: 640px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.72;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.90);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-mini-card {
    min-height: 132px;
    padding: 20px;
    border-radius: 10px !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.065));
    border: 1px solid rgba(255, 255, 255, 0.19);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.13);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-mini-card::before {
    content: "";
    position: absolute;
    inset: auto -35% -55% -35%;
    height: 92px;
    background: rgba(255, 255, 255, 0.17);
    filter: blur(18px);
}

.hero-mini-card:hover {
    transform: translateY(-7px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.09));
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.16);
}

.mini-icon {
    width: 85px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    margin: 0 auto 15px;
    background: rgba(255, 224, 138, 0.20);
    font-size: 45px;
    text-align: center;
    transition: transform 0.35s ease, background 0.35s ease;
}

.hero-mini-card:hover .mini-icon {
    width: 95px;
    height: 80px;
    font-size: 55px;
    transform: rotate(-10deg) scale(1.08);
    background: rgba(255, 224, 138, 0.32);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 900;
}

.hero-mini-card small {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
}

.login-card {
    width: 100%;
    max-width: 500px;
    min-height: 610px;
    justify-self: end;
    position: relative;
    z-index: 2;
    padding: 0;
    border-radius: 10px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.965);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 38px 82px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    animation: fadeRight 0.72s ease both;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    z-index: 3;
    background: linear-gradient(90deg, #08764d, #16b978, #ffe08a);
}

.login-card::after {
    content: "";
    position: absolute;
    width: 245px;
    height: 245px;
    right: -118px;
    top: -124px;
    border-radius: 10px !important;
    background: rgba(18, 168, 97, 0.085);
}

.form-slider {
    width: 200%;
    min-height: 610px;
    display: flex;
    position: relative;
    z-index: 1;
    transform: translateX(0);
    transition: transform 0.48s cubic-bezier(.2, .9, .2, 1);
}

body.show-forgot .form-slider,
.login-card.is-forgot .form-slider {
    transform: translateX(-50%);
}

.form-panel {
    width: 50%;
    padding: 34px;
    flex: 0 0 50%;
}

.login-panel {
    animation: panelIn 0.45s ease both;
}

.forgot-panel {
    opacity: 0.92;
}

body.show-forgot .forgot-panel,
.login-card.is-forgot .forgot-panel {
    animation: panelIn 0.45s ease both;
}

.login-brand {
    display: grid;
    grid-template-columns: 66px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}
.login-logo {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #064d35, #14a66b);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(0, 110, 68, 0.26);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.login-logo:hover {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 22px 40px rgba(0, 110, 68, 0.34);
    filter: saturate(1.1);
    width: 76px;
    height: 76px;
    font-size: 30px;
}
.login-logo-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 27px;
    transition: transform 0.35s ease;
}
.login-logo:hover .login-logo-icon {
    transform: rotate(10deg) scale(1.08);
}

.forgot-logo {
    background: linear-gradient(135deg, #0a5139, #f0b429);
}

.login-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0c8d5b;
}

.login-brand h2 {
    margin: 0;
    max-width: 360px;
    font-size: clamp(27px, 2.6vw, 35px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -1.1px;
    color: #073c29;
}

.login-brand p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    color: #64766e;
}

.alert-box {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 10px !important;
    margin-bottom: 18px;
    animation: alertPop 0.35s ease both;
}

.alert-error {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 1px solid #fecaca;
    box-shadow: 0 18px 34px rgba(153, 27, 27, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #f0fff6, #e8f8ef);
    border: 1px solid #b9ebcc;
    box-shadow: 0 18px 34px rgba(6, 95, 70, 0.08);
}

.alert-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    background: #ffdddd;
    color: #b91c1c;
    font-size: 18px;
    font-weight: 900;
}

.alert-success .alert-icon {
    background: #dff8e9;
    color: #08764d;
}

.alert-box strong {
    display: block;
    margin-bottom: 4px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 900;
}

.alert-success strong {
    color: #086345;
}

.alert-box p {
    margin: 0 0 4px;
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
}

.alert-success p {
    color: #0b5f44;
}

.alert-box p:last-child {
    margin-bottom: 0;
}

.form-group {
    display: block;
    margin-bottom: 18px;
}

.form-group span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 900;
    color: #063b28;
}

.form-group span i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    font-style: normal;
    background: #eef8f3;
    box-shadow: inset 0 0 0 1px #dbeee5;
}

.form-group input {
    width: 100%;
    height: 58px;
    border: 1px solid #d5e4db;
    border-radius: 10px !important;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 800;
    color: #073c29;
    outline: none;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(5, 59, 36, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input::placeholder {
    color: #8aa096;
    font-weight: 700;
}

.form-group input:hover {
    border-color: #9bd2b5;
    transform: translateY(-1px);
}

.form-group input:focus {
    border-color: #0d9a61;
    box-shadow:
        0 0 0 5px rgba(13, 154, 97, 0.12),
        0 18px 34px rgba(5, 59, 36, 0.08);
    transform: translateY(-2px);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 52px;
    height: 42px;
    border: 0;
    border-radius: 10px !important;
    transform: translateY(-50%);
    background: #eef7f2;
    color: #064d35;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.password-toggle:hover {
    transform: translateY(-50%) scale(1.05);
    background: #dff4ea;
    box-shadow: 0 10px 20px rgba(6, 77, 53, 0.10);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #607269;
    font-size: 13px;
    font-weight: 800;
}

.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: #0d8b58;
}

.forgot-link,
.back-login-btn {
    border: 0;
    background: transparent;
    color: #064d35;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.forgot-link:hover,
.back-login-btn:hover {
    color: #0d9a61;
    transform: translateX(2px);
}

.login-btn {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #064d35, #149461, #12b875);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 22px 40px rgba(0, 110, 68, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}

.login-btn:hover::before {
    left: 130%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 52px rgba(0, 110, 68, 0.34);
    filter: saturate(1.06);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.forgot-submit {
    background: linear-gradient(135deg, #07543b, #0ea56a, #f0b429);
}

.back-login-btn {
    width: 100%;
    margin-top: 14px;
    height: 48px;
    border-radius: 10px !important;
    background: #eef8f3;
}

.back-login-btn:hover {
    transform: translateY(-2px);
    background: #e1f4eb;
}

.forgot-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 10px !important;
    margin: 2px 0 18px;
    background: #f3faf6;
    border: 1px solid #dceee5;
}

.forgot-note span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    background: #e4f5ec;
}

.forgot-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
    color: #607269;
}

.hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.is-switching .login-card {
    pointer-events: none;
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes panelIn {
    from {
        opacity: 0.7;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

@keyframes pulseOrb {
    0%,
    100% {
        transform: scale(1) rotate(20deg);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.13) rotate(34deg);
        opacity: 1;
    }
}

@keyframes alertPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1180px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 40px 24px;
    }

    .login-card {
        justify-self: center;
    }

    .login-hero {
        max-width: 900px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cards {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 720px) {
    .login-page {
        padding: 24px 14px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 10px 14px;
        margin-bottom: 22px;
    }

    .login-hero h1 {
        font-size: 42px;
        letter-spacing: -1.4px;
    }

    .login-hero h1 span {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 26px;
    }

    .hero-mini-card {
        min-height: auto;
        padding: 17px;
    }

    .login-card {
        max-width: 100%;
        min-height: 585px;
        border-radius: 10px !important;
    }

    .form-slider {
        min-height: 585px;
    }

    .form-panel {
        padding: 26px 20px;
    }

    .login-brand {
        grid-template-columns: 56px 1fr;
        gap: 13px;
        margin-bottom: 22px;
    }

    .login-logo {
        width: 56px;
        height: 56px;
        border-radius: 10px !important;
        font-size: 21px;
    }

    .login-brand h2 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .login-brand p {
        font-size: 13px;
    }

    .form-group input {
        height: 55px;
        border-radius: 10px !important;
        font-size: 14px;
    }

    .login-btn {
        height: 58px;
        border-radius: 10px !important;
        font-size: 16px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
#adminLoginForm {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#adminLoginForm.is-hidden {
    display: none;
}

.forgot-password-form {
    display: none;
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.forgot-password-form.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: forgotSlideIn 0.35s ease both;
}

.forgot-box {
    position: relative;
    z-index: 3;
}

.forgot-main-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px !important;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 28px;
    background: linear-gradient(135deg, #e7fff3, #ccf6df);
    box-shadow: 0 18px 35px rgba(6, 77, 53, 0.12);
}

.forgot-box h3 {
    margin: 8px 0 10px;
    font-size: 30px;
    line-height: 1.1;
    color: #073c29;
    font-weight: 900;
    letter-spacing: -1px;
}

.forgot-box p {
    margin: 0 0 24px;
    color: #63766d;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.back-login-btn {
    width: 100%;
    height: 54px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px !important;
    background: #edf7f2;
    color: #064d35;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.back-login-btn:hover {
    background: #ddf3e9;
    transform: translateY(-2px);
}

.recovery-message {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px !important;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.recovery-message.show {
    display: block;
    animation: fadeUp 0.25s ease both;
}

.form-changing {
    pointer-events: none;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 10px !important;
    animation: spinLoader 0.7s linear infinite;
}

@keyframes forgotSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* Global 2px radius override */
*, *::before, *::after { border-radius: 10px !important; }
