:root {
    --green: #43a359;
    --green-dark: #16823b;
    --lime: #9be554;
    --dark: #081f18;
    --text: #10201b;
    --muted: #6f7c76;
    --border: #dfe7df;
    --bg: #ffffff;
    --gradient: linear-gradient(135deg, #279847 0%, #9be554 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
}

/* LEFT */
.login-left {
    min-height: 100vh;
    background:#f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 26px 38px;
    position: relative;
    z-index: 5;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 138px;
    display: block;
    margin-bottom: 30px;
}

.logo-link {
    display: inline-block;
}

.welcome-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #edf8ef;
    color: var(--green-dark);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 16px;
}

.welcome-pill span {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.login-card h1 {
    color: var(--dark);
    font-size: clamp(31px, 2.6vw, 39px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 24px;
}

form {
    display: grid;
    gap: 14px;
}

.form-alert {
    border-radius: 13px;
    padding: 11px 13px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.form-alert.success {
    color: #176b34;
    background: #eaf7ed;
    border: 1px solid #c8e8d0;
}

.form-alert.error {
    color: #9d2929;
    background: #fff0f0;
    border: 1px solid #f3caca;
}

.input-group {
    display: grid;
    gap: 7px;
}

.input-group label {
    color: var(--dark);
    font-size: 12.5px;
    font-weight: 900;
}

.input-box {
    height: 53px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    transition: .22s ease;
}

.input-box:hover {
    border-color: #cbd8cb;
}

.input-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(67, 163, 89, .1);
}

.input-box.is-invalid {
    border-color: #d95050;
    box-shadow: 0 0 0 4px rgba(217, 80, 80, .08);
}

.field-error {
    color: #b53333;
    font-size: 12px;
    line-height: 1.4;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.input-box input::placeholder {
    color: #89948f;
}

.field-icon,
.btn-lock,
.btn-arrow,
.google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-icon svg {
    width: 17px;
    height: 17px;
}

.field-icon svg path,
.field-icon svg rect {
    fill: none;
    stroke: #98a39d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-box button {
    border: none;
    background: #edf8ef;
    color: var(--green-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.password-box button:hover {
    background: #e2f4e5;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.form-row label {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.form-row input {
    width: 14px;
    height: 14px;
    accent-color: var(--green);
}

.form-row a {
    color: var(--green-dark);
    font-weight: 900;
}

.help-text {
    color: #89948f;
    font-size: 12px;
}

.login-btn,
.google-btn,
.create-btn {
    height: 53px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.login-btn {
    border: 0;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 15px 36px rgba(67, 163, 89, .25);
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    align-items: center;
    padding: 0 22px;
}

.login-btn .btn-text {
    color: #fff;
    text-align: center;
}

.login-btn:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.btn-lock svg,
.btn-arrow svg {
    width: 17px;
    height: 17px;
}

.btn-lock svg path,
.btn-lock svg rect,
.btn-arrow svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.google-btn,
.create-btn {
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.google-logo svg {
    width: 20px;
    height: 20px;
    display: block;
}

.create-btn {
    display: grid;
    place-items: center;
    color: var(--green-dark);
}

/* animated border */
.animated-btn::before,
.animated-border-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        transparent 70deg,
        rgba(255,255,255,.85) 115deg,
        #9be554 150deg,
        #43a359 190deg,
        transparent 255deg,
        transparent 360deg
    );
    opacity: 0;
    transition: opacity .25s ease;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinBorder 2.2s linear infinite;
    z-index: -1;
}

.animated-border-btn::before {
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        transparent 80deg,
        #9be554 135deg,
        #43a359 190deg,
        transparent 260deg,
        transparent 360deg
    );
}

.animated-btn:hover::before,
.animated-border-btn:hover::before {
    opacity: 1;
}

.login-btn:hover,
.google-btn:hover,
.create-btn:hover {
    transform: translateY(-2px);
}

.login-btn:hover {
    box-shadow: 0 19px 44px rgba(67, 163, 89, .32);
}

.google-btn:hover,
.create-btn:hover {
    border-color: rgba(67, 163, 89, .45);
    box-shadow: 0 12px 28px rgba(13, 36, 27, .07);
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinBorder {
    to {
        --angle: 360deg;
    }
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7c8982;
    font-size: 12.5px;
}

.or-divider::before,
.or-divider::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex: 1;
}

.new-account {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    text-align: center;
}

.new-account p {
    color: var(--muted);
    font-size: 13px;
}

.secure-note {
    margin-top: 16px;
    color: #7d8a83;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.secure-note span {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
}

.secure-note svg {
    width: 17px;
    height: 17px;
}

.secure-note svg path {
    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* RIGHT */
.login-right {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 21%, rgba(155, 229, 84, .12), transparent 31%),
        linear-gradient(135deg, #f7faf7 0%, #ffffff 55%, #f8fbf8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 54px 64px;
}

.login-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 145px;
    height: 100%;
    background: linear-gradient(90deg, rgba(13,36,27,.05), transparent);
    opacity: .42;
}

.dot-pattern {
    position: absolute;
    right: 5.5%;
    top: 8%;
    width: 155px;
    height: 155px;
    background-image: radial-gradient(rgba(67, 163, 89, .2) 1.2px, transparent 1.2px);
    background-size: 13px 13px;
    opacity: .3;
}

.green-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.glow-one {
    width: 380px;
    height: 380px;
    right: -85px;
    bottom: 30px;
    background: rgba(155, 229, 84, .16);
}

.glow-two {
    width: 250px;
    height: 250px;
    left: 70px;
    top: 100px;
    background: rgba(67, 163, 89, .08);
}

.dashboard-preview {
    width: min(800px, 100%);
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(13, 36, 27, .11);
    backdrop-filter: blur(18px);
    opacity: .73;
    filter: saturate(.82) contrast(.96);
    transform: translateY(-16px);
}

.preview-top {
    height: 48px;
    background: rgba(255,255,255,.62);
    border-bottom: 1px solid rgba(226,233,226,.75);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.preview-top > span {
    width: 9px;
    height: 9px;
    background: #d8e0d7;
    border-radius: 50%;
}

.preview-brand {
    margin-left: 10px;
}

.preview-brand img {
    width: 66px;
    opacity: .32;
}

.preview-actions {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

.preview-actions i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(13,36,27,.06);
}

.preview-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
}

.preview-sidebar {
    background: rgba(255,255,255,.58);
    border-radius: 20px;
    padding: 18px;
}

.mini-logo {
    color: var(--green);
    font-weight: 900;
    margin-bottom: 19px;
}

.preview-sidebar p {
    color: #96a19b;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 14px;
}

.preview-sidebar .active {
    background: rgba(67, 163, 89, .18);
    color: var(--green-dark);
    padding: 10px 13px;
    border-radius: 999px;
}

.preview-main {
    background: rgba(255,255,255,.48);
    border-radius: 20px;
    padding: 20px;
}

.preview-main h3 {
    color: rgba(8,31,24,.55);
    font-size: 18px;
    margin-bottom: 17px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.preview-cards div {
    background: rgba(255,255,255,.66);
    border-radius: 16px;
    padding: 15px;
    min-height: 88px;
    box-shadow: 0 10px 24px rgba(13,36,27,.03);
}

.preview-cards small {
    color: #8c9891;
    font-size: 11px;
    font-weight: 900;
}

.preview-cards strong {
    display: block;
    margin-top: 7px;
    color: rgba(8,31,24,.65);
    font-size: 20px;
}

.preview-cards em {
    display: block;
    margin-top: 7px;
    color: rgba(67,163,89,.72);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.preview-cards em.down {
    color: rgba(229, 86, 86, .58);
}

.preview-bottom {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.55fr .95fr;
    gap: 15px;
}

.chart-box,
.orders-box {
    background: rgba(255,255,255,.66);
    border-radius: 16px;
    min-height: 165px;
    padding: 18px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-head span,
.orders-box h4 {
    color: rgba(8,31,24,.58);
    font-size: 13px;
    font-weight: 900;
}

.chart-head small {
    color: #98a39d;
    font-size: 10.5px;
    font-weight: 900;
}

.chart-box svg {
    width: 100%;
    height: 96px;
    margin-top: 8px;
}

.chart-box path {
    fill: none;
    stroke: rgba(67,163,89,.38);
    stroke-width: 5;
    stroke-linecap: round;
}

.chart-days {
    display: flex;
    justify-content: space-between;
    color: #a4ada8;
    font-size: 9.5px;
    font-weight: 800;
}

.orders-box h4 {
    margin-bottom: 20px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.order-row span {
    width: 55%;
    height: 12px;
    border-radius: 999px;
    background: rgba(13,36,27,.07);
}

.order-row b {
    color: rgba(8,31,24,.45);
    font-size: 11px;
}

.right-note {
    position: absolute;
    left: 82px;
    bottom: 58px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #66736c;
}

.right-note > span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 15px 36px rgba(67, 163, 89, .22);
}

.right-note svg {
    width: 19px;
    height: 19px;
}

.right-note svg path,
.right-note svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.right-note p {
    font-size: 13.5px;
    line-height: 1.5;
}

.right-note b {
    color: var(--dark);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 100vh;
    }

    .login-right {
        display: none;
    }
}

@media (max-width: 560px) {
    .login-left {
        padding: 20px;
        align-items: center;
    }

    .login-card {
        max-width: 100%;
    }

    .logo {
        width: 128px;
        margin-bottom: 26px;
    }

    .welcome-pill {
        margin-bottom: 15px;
    }

    .login-card h1 {
        font-size: 31px;
        letter-spacing: -1.2px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 23px;
    }

    form {
        gap: 14px;
    }

    .input-box,
    .login-btn,
    .google-btn,
    .create-btn {
        height: 52px;
        border-radius: 15px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .new-account {
        margin-top: 15px;
    }

    .secure-note {
        margin-top: 15px;
        font-size: 12px;
    }
}
