:root {
    --forest: #1f3a2f;
    --sage: #7aa37a;
    --leaf: #3b7f5f;
    --mist: #f5f7f4;
    --ink: #0f172a;
    --muted: #5f6b63;
    --card: #ffffff;
    --shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
    --card-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(59, 127, 95, 0.12), transparent 34%),
        radial-gradient(circle at 92% 88%, rgba(122, 163, 122, 0.15), transparent 34%),
        linear-gradient(155deg, #f3f8f3 0%, #edf5ef 45%, #eaf2ec 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    margin: 0;
}

p {
    margin: 0;
    color: var(--muted);
}

.login-body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

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

.orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.6;
    filter: blur(0px);
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 127, 95, 0.35), transparent 70%);
    top: -80px;
    left: -40px;
}

.orb-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(122, 163, 122, 0.35), transparent 70%);
    bottom: -60px;
    right: 120px;
    animation-delay: 2s;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(31, 58, 47, 0.2), transparent 70%);
    top: 20%;
    right: -40px;
    animation-delay: 4s;
}

.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(420px, 58%);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 56px;
}

.login-info {
    display: grid;
    gap: 24px;
    animation: fadeUp 0.8s ease forwards;
    justify-self: start;
    width: 100%;
    max-width: 360px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b7f5f, #9bc29b);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand h2 {
    font-size: 20px;
}

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

.info-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: grid;
    gap: 12px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.info-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-weight: 500;
    font-size: 14px;
}

.info-card i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(59, 127, 95, 0.15);
    display: grid;
    place-items: center;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 127, 95, 0.12);
    color: var(--forest);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.status-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.login-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    display: grid;
    gap: 22px;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.15s;
    width: 100%;
    max-width: 620px;
    justify-self: end;
}

.card-header {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

.card-header h1 {
    font-size: clamp(28px, 3.2vw, 34px);
}

.login-header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-weight: 600;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    font-weight: 600;
    color: var(--leaf);
}

.login-form {
    display: grid;
    gap: 16px;
}

.auth-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(59, 127, 95, 0.12);
    width: fit-content;
}

.tab-btn {
    border: none;
    background: transparent;
    color: var(--forest);
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.02em;
    min-width: 92px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b7f5f, #1f3a2f);
    color: #fff;
    box-shadow: 0 8px 16px rgba(31, 58, 47, 0.2);
}

.auth-forms {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 520px;
}

.login-form {
    display: none;
    animation: fadeUp 0.45s ease forwards;
    width: 100%;
    max-width: 520px;
}

.login-form.active {
    display: grid;
}

.form-field {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--forest);
}

.form-field input,
.form-field select {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid #d6e2d9;
    font-size: 14px;
    font-family: inherit;
    background: #f9fbf9;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    min-height: 44px;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(59, 127, 95, 0.15);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    accent-color: var(--leaf);
}

.link {
    color: var(--leaf);
    text-decoration: none;
    font-weight: 600;
}

.primary-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #3b7f5f, #1f3a2f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 12px 18px rgba(31, 58, 47, 0.25);
    transition: transform 0.2s ease;
    min-height: 46px;
    width: 100%;
    max-width: 520px;
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.foot-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    max-width: 520px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(18px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: minmax(220px, 280px) minmax(340px, 1fr);
        gap: 24px;
        padding: 28px 24px;
    }

    .login-card {
        padding: 0;
    }

    .login-info {
        max-width: 280px;
        padding: 0;
    }
}

@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
        padding: 14px 16px 20px;
        min-height: auto;
        gap: 0;
        align-items: start;
    }

    .login-info {
        display: none;
    }

    .login-card {
        width: min(100%, 560px);
        max-width: 560px;
        margin: 0 auto;
        padding: 0;
        gap: 18px;
        justify-self: center;
    }

    .orb-1 {
        width: 220px;
        height: 220px;
        top: -70px;
        left: -90px;
    }

    .orb-2 {
        width: 170px;
        height: 170px;
        right: -30px;
        bottom: 24px;
    }
}

/* Large mobile devices (e.g. 414px-767px) */
@media (max-width: 767px) {
    .login-shell {
        padding: 20px clamp(14px, 4vw, 20px) 24px;
    }

    .login-card {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .login-card,
    .auth-forms,
    .login-form,
    .primary-btn,
    .foot-note {
        max-width: 100%;
    }

    .card-header {
        max-width: 100%;
        gap: 9px;
        text-align: center;
        justify-items: center;
        padding-top: 26px;
    }

    .card-header h1 {
        font-size: clamp(30px, 6.3vw, 34px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .card-header p {
        font-size: 14px;
    }

    .login-header-contact {
        justify-content: center;
        text-align: center;
    }

    .auth-tabs {
        width: 100%;
        max-width: 360px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 16px;
        margin-inline: auto;
    }

    .tab-btn {
        width: 100%;
        border-radius: 12px;
        min-height: 38px;
        font-size: 13px;
        padding: 7px 10px;
    }

    .form-field input,
    .form-field select {
        min-height: 48px;
        font-size: 16px;
    }

    .auth-forms {
        margin-inline: auto;
    }

    .form-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .primary-btn {
        min-height: 50px;
        font-size: 16px;
    }
}

/* Medium mobile devices (e.g. 381px-480px) */
@media (max-width: 480px) {
    .login-shell {
        padding: 12px 12px 20px;
    }

    .card-header h1 {
        font-size: clamp(24px, 8vw, 30px);
        line-height: 1.15;
    }

    .card-header p {
        font-size: 13px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .status-chip {
        font-size: 12px;
        padding: 7px 12px;
    }
}

/* Small mobile devices (e.g. 320px-380px) */
@media (max-width: 380px) {
    .login-shell {
        padding: 14px 10px 18px;
    }

    .card-header {
        gap: 8px;
        padding-top: 20px;
    }

    .card-header h1 {
        font-size: clamp(22px, 7.6vw, 26px);
    }

    .tab-btn {
        min-width: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .form-field {
        gap: 6px;
        font-size: 13px;
    }

    .form-field input,
    .form-field select {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .primary-btn {
        min-height: 48px;
        font-size: 15px;
    }

    .foot-note {
        font-size: 11.5px;
    }
}
