:root {
    --accent: #f3b414;
    --accent-strong: #eda800;
    --accent-soft: #fff4d7;
    --ink: #121a2c;
    --muted: #5e6676;
    --line: #d9dee7;
    --soft-line: #edf0f5;
    --surface: #ffffff;
    --panel: #fbfcfe;
    --sidebar: #162233;
    --success: #59b77a;
    --warning: #f0b434;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    color: #121a2c;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(510px, 0.95fr);
}

.login-info-panel {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    padding: clamp(2.75rem, 4vw, 4.9rem) clamp(3rem, 5.5vw, 6.1rem) 4.1rem;
    overflow: hidden;
    border-right: 1px solid var(--soft-line);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: clamp(170px, 12vw, 214px);
    height: auto;
}

.info-copy {
    width: min(650px, 74%);
    margin-top: clamp(2rem, 2.8vw, 2.7rem);
    position: relative;
    z-index: 3;
}

.info-copy h1,
.mobile-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.7rem, 3.2vw, 3.6rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: 0;
}

.info-copy p,
.mobile-hero p,
.form-heading p,
.admin-contact {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.info-copy p {
    width: min(500px, 100%);
    margin: 1.6rem 0 0;
    font-size: clamp(1rem, 1.3vw, 1.28rem);
}

.title-rule {
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 1.7rem;
    background: var(--accent);
    border-radius: 99px;
}

.billing-preview {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.accent-disc {
    position: absolute;
    width: clamp(250px, 22vw, 340px);
    height: clamp(250px, 22vw, 340px);
    left: 56%;
    top: 29%;
    transform: translateX(-8%);
    background: radial-gradient(circle, rgba(246, 190, 37, 0.28) 0%, rgba(246, 190, 37, 0.11) 64%, rgba(246, 190, 37, 0) 70%);
    border-radius: 50%;
}

.dot-pattern {
    position: absolute;
    width: 120px;
    height: 100px;
    left: min(78%, 750px);
    top: 33%;
    opacity: 0.8;
    background-image: radial-gradient(var(--accent) 1.8px, transparent 1.8px);
    background-size: 20px 20px;
}

.plant {
    position: absolute;
    left: clamp(5.4rem, 7.5vw, 8.4rem);
    top: clamp(31rem, 59vh, 37rem);
    width: 76px;
    height: 150px;
    z-index: 1;
}

.plant div {
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 54px;
    height: 52px;
    background: #f9fafb;
    border-radius: 0 0 22px 22px;
    box-shadow: inset 0 -8px 18px rgba(122, 132, 144, 0.16), 0 10px 22px rgba(51, 60, 74, 0.1);
}

.plant span {
    position: absolute;
    bottom: 48px;
    width: 36px;
    height: 18px;
    background: #6fa26c;
    border-radius: 36px 36px 36px 0;
    transform-origin: right center;
    box-shadow: 0 8px 12px rgba(76, 110, 73, 0.1);
}

.plant span:nth-child(1) {
    left: 9px;
    bottom: 70px;
    transform: rotate(42deg);
}

.plant span:nth-child(2) {
    left: 24px;
    bottom: 92px;
    transform: rotate(-58deg);
    background: #89b383;
}

.plant span:nth-child(3) {
    left: 0;
    bottom: 104px;
    transform: rotate(32deg);
}

.plant span:nth-child(4) {
    left: 35px;
    bottom: 122px;
    transform: rotate(-68deg);
    background: #76a66f;
}

.plant span:nth-child(5) {
    left: 12px;
    bottom: 128px;
    transform: rotate(58deg);
    background: #8ebd87;
}

.plant::before,
.plant::after {
    content: "";
    position: absolute;
    left: 46px;
    bottom: 50px;
    width: 2px;
    height: 92px;
    background: #8aa384;
    transform: rotate(14deg);
    transform-origin: bottom center;
}

.plant::after {
    left: 35px;
    height: 78px;
    transform: rotate(-22deg);
}

.dashboard-mock {
    position: absolute;
    left: clamp(11.2rem, 14vw, 13.6rem);
    top: clamp(23rem, 42vh, 26rem);
    z-index: 2;
    width: min(600px, 66vw);
    min-height: 352px;
    display: grid;
    grid-template-columns: 46px 1fr;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid #e0e5ec;
    border-radius: 20px;
    box-shadow: 0 22px 44px rgba(31, 38, 52, 0.15);
}

.dashboard-mock::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(220, 226, 235, 0.7);
    border-radius: 14px;
    pointer-events: none;
}

.mock-sidebar {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 18px;
    padding: 17px 0;
    background: var(--sidebar);
}

.mock-sidebar i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #d8dee7;
    font-size: 0.66rem;
    border-radius: 5px;
}

.mock-sidebar i:nth-child(2) {
    color: var(--sidebar);
    background: #ffffff;
}

.mock-logo {
    width: 20px;
    height: 20px;
    display: block;
    margin-bottom: 18px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--sidebar);
}

.mock-content {
    position: relative;
    z-index: 1;
    padding: 24px 32px 28px 22px;
}

.mock-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mock-topbar strong,
.mock-panel-heading strong {
    font-size: 0.72rem;
    color: var(--ink);
}

.mock-topbar span {
    width: 42px;
    height: 18px;
    background: linear-gradient(90deg, #f5f7fa 0%, #ffffff 100%);
    border: 1px solid #e7ecf2;
    border-radius: 99px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}

.metric-row article,
.mock-panels section {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 7px;
    box-shadow: 0 8px 16px rgba(34, 42, 55, 0.07);
}

.metric-row article {
    min-height: 86px;
    padding: 13px 14px;
}

.metric-row small,
.metric-row span {
    display: block;
    color: #5b6473;
    font-size: 0.52rem;
    font-weight: 600;
}

.metric-row b {
    display: block;
    margin: 6px 0 5px;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
}

.mock-panels {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 12px;
}

.mock-panels section {
    min-height: 136px;
    padding: 16px;
}

.mock-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mock-panel-heading small,
.activity-link {
    color: #2d7bdc;
    font-size: 0.48rem;
}

.mock-row {
    display: grid;
    grid-template-columns: 52px 1fr 42px auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.mock-row span,
.activity-line span {
    height: 5px;
    background: #d9dee5;
    border-radius: 99px;
}

.mock-row em {
    min-width: 54px;
    padding: 4px 7px;
    color: #338859;
    background: #dff3e7;
    border: 1px solid #bce6cc;
    border-radius: 99px;
    font-size: 0.44rem;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.mock-row:nth-child(3) em {
    color: #9d720d;
    background: #fff3cb;
    border-color: #f2d27b;
}

.activity-line {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.activity-line i {
    color: #9aa4b2;
    font-size: 0.7rem;
}

.feature-row {
    position: absolute;
    left: clamp(3rem, 5.5vw, 6.1rem);
    right: clamp(2.4rem, 5vw, 5rem);
    bottom: clamp(2.3rem, 5.8vh, 4.2rem);
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.8rem, 4vw, 4.6rem);
}

.feature-item {
    position: relative;
    margin: 0;
    min-width: 0;
}

.feature-item + .feature-item::before {
    content: "";
    position: absolute;
    left: calc(clamp(0.9rem, 2vw, 2.3rem) * -1);
    top: 12px;
    width: 1px;
    height: 142px;
    background: var(--line);
}

.feature-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 1.05rem;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: 13px;
    font-size: 1.85rem;
}

.feature-item h2 {
    margin: 0 0 0.45rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.feature-item p {
    max-width: 180px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.login-auth-panel {
    min-height: 100vh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(2rem, 4vw, 5.8rem);
    background: rgba(250, 251, 253, 0.72);
}

.login-card {
    width: min(100%, 635px);
    padding: clamp(3rem, 4.2vw, 5rem) clamp(2.4rem, 4vw, 3.7rem) clamp(2.3rem, 3.5vw, 3.6rem);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(31, 38, 52, 0.1);
}

.login-card.is-registering {
    width: min(100%, 560px);
    padding-top: clamp(1.5rem, 2.5vw, 2.35rem);
    padding-bottom: clamp(1.35rem, 2.2vw, 1.9rem);
}

.auth-view {
    display: none;
}

.auth-view.is-active {
    display: block;
}

.form-heading {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-heading-compact {
    margin-bottom: 1rem;
}

.form-heading h2 {
    margin: 0 0 0.6rem;
    color: var(--ink);
    font-size: clamp(1.9rem, 2.35vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.form-heading p {
    margin: 0;
    font-size: clamp(1rem, 1.18vw, 1.18rem);
}

.login-form {
    display: grid;
    gap: 1.45rem;
}

.signup-form {
    display: grid;
    gap: 0.75rem;
}

.signup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.68rem 1rem;
}

.field-group-full {
    grid-column: 1 / -1;
}

.login-messages {
    margin-bottom: 1.25rem;
}

.login-messages .alert {
    margin: 0;
    font-size: 0.92rem;
}

.field-group label {
    display: block;
    margin: 0 0 0.7rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
}

.login-card.is-registering .field-group label {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.input-shell {
    height: 64px;
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0 1.2rem;
    background: #ffffff;
    border: 1px solid #c5ccd8;
    border-radius: 6px;
    color: #687282;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-shell:focus-within {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(243, 180, 20, 0.16);
}

.input-shell i {
    font-size: 1.25rem;
}

.input-shell input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05rem;
}

.input-shell input::placeholder {
    color: #687282;
}

.signup-input-shell {
    height: 44px;
    gap: 0.8rem;
    padding: 0 0.95rem;
}

.signup-input-shell i {
    font-size: 1rem;
}

.signup-control {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

select.signup-control {
    cursor: pointer;
}

.textarea-shell {
    height: auto;
    min-height: 62px;
    align-items: start;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.textarea-shell textarea {
    min-height: 36px;
    resize: vertical;
}

.errorlist,
.form-errors {
    margin: 0.35rem 0 0;
    padding: 0;
    color: #b42318;
    font-size: 0.82rem;
    line-height: 1.35;
    list-style: none;
}

.form-errors {
    padding: 0.7rem 0.85rem;
    background: #fff1f0;
    border: 1px solid #ffd2cc;
    border-radius: 6px;
}

.form-errors p {
    margin: 0;
}

.password-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #687282;
    border-radius: 4px;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #1f2737;
    outline: 0;
    background: #f3f5f8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: -0.2rem;
    color: #2f3747;
    font-size: 0.98rem;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    white-space: nowrap;
}

.remember-option input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--accent);
}

.btn-login,
.btn-register {
    width: 100%;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.btn-login {
    margin-top: 0.35rem;
    color: #111111;
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, #fac72f 0%, #f4b917 100%);
}

.btn-login:hover,
.btn-login:focus {
    color: #000000;
    border-color: var(--accent-strong);
    background: #eeb11a;
}

.separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.6rem;
    margin: 1rem 0 0.2rem;
    color: #687282;
    font-size: 0.98rem;
}

.separator::before,
.separator::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.separator span {
    width: 20px;
    text-align: center;
}

.btn-register {
    color: var(--ink);
    border: 1px solid #aeb6c3;
    background: #ffffff;
}

.btn-register:hover,
.btn-register:focus {
    color: var(--ink);
    border-color: #8892a1;
    background: #f8fafc;
}

.btn-register i {
    color: var(--accent-strong);
    font-size: 1.1rem;
}

.btn-link-back {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.15rem 0;
    color: var(--accent-strong);
    border: 0;
    background: transparent;
    font-weight: 800;
}

.login-card.is-registering .btn-login {
    height: 52px;
}

.btn-link-back:hover,
.btn-link-back:focus {
    color: var(--ink);
}

.admin-contact {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.45;
}

.admin-contact a {
    display: block;
}

.mobile-hero {
    display: none;
}

@media (max-width: 1280px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(470px, 0.9fr);
    }

    .info-copy {
        width: min(520px, 72%);
    }

    .dashboard-mock {
        left: clamp(8.5rem, 12vw, 11rem);
        width: min(560px, 67vw);
    }

    .feature-row {
        gap: 2rem;
    }
}

@media (max-width: 1040px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-info-panel {
        display: none;
    }

    .login-auth-panel {
        min-height: 100vh;
        padding: 2rem 1.4rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    }

    .mobile-hero {
        display: block;
        width: min(100%, 520px);
        margin: 0 auto 1.5rem;
        text-align: center;
    }

    .brand-mobile {
        justify-content: center;
        width: 100%;
        margin-bottom: 1.6rem;
    }

    .brand-mobile img {
        width: 178px;
    }

    .mobile-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .mobile-hero p {
        margin: 1rem auto 0;
        font-size: 1rem;
    }

    .login-card {
        width: min(100%, 560px);
        padding: 2.6rem 2rem 2.2rem;
    }

    .login-card.is-registering {
        width: min(100%, 560px);
    }
}

@media (max-width: 560px) {
    .login-auth-panel {
        display: block;
        padding: 1.3rem 1rem;
    }

    .mobile-hero {
        margin-bottom: 1.05rem;
    }

    .brand-mobile {
        margin-bottom: 1.1rem;
    }

    .brand-mobile img {
        width: 155px;
    }

    .mobile-hero h1 {
        font-size: 2rem;
        line-height: 1.12;
    }

    .mobile-hero p {
        font-size: 0.92rem;
    }

    .login-card {
        padding: 1.5rem 1.15rem;
        border-radius: 10px;
        box-shadow: 0 16px 34px rgba(31, 38, 52, 0.1);
    }

    .login-card.is-registering {
        padding: 1.35rem 1.05rem;
    }

    .form-heading {
        margin-bottom: 1.5rem;
    }

    .form-heading h2 {
        font-size: 1.45rem;
    }

    .form-heading p {
        font-size: 0.95rem;
    }

    .login-form {
        gap: 1rem;
    }

    .signup-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .field-group label {
        margin-bottom: 0.45rem;
        font-size: 0.9rem;
    }

    .input-shell {
        height: 52px;
        gap: 0.75rem;
        padding: 0 0.9rem;
    }

    .input-shell i {
        font-size: 1rem;
    }

    .input-shell input {
        font-size: 0.95rem;
    }

    .signup-input-shell {
        height: 48px;
    }

    .textarea-shell {
        min-height: 74px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        font-size: 0.9rem;
    }

    .remember-option input {
        width: 20px;
        height: 20px;
    }

    .btn-login,
    .btn-register {
        height: 52px;
        font-size: 0.98rem;
    }

    .separator {
        gap: 0.9rem;
        margin: 0.55rem 0 0.05rem;
    }

    .admin-contact {
        margin-top: 0.85rem;
        font-size: 0.9rem;
    }
}
