* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #37ae6a;
    --orange: #f29a40;
    --ink: #163027;
    --muted: #5d7268;
}

body {
    min-height: 100vh;
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f4fbf6;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.brand {
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 56px 64px;
    background:
        radial-gradient(circle at 12% 18%, rgba(55, 174, 106, 0.18), transparent 36%),
        radial-gradient(circle at 88% 86%, rgba(242, 154, 64, 0.16), transparent 34%),
        #f4fbf6;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.blob-green {
    width: 360px;
    height: 360px;
    top: -90px;
    left: -70px;
    background: radial-gradient(circle, rgba(55, 174, 106, 0.38), transparent 68%);
    animation: drift 14s ease-in-out infinite;
}

.blob-orange {
    width: 320px;
    height: 320px;
    right: -40px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(242, 154, 64, 0.34), transparent 68%);
    animation: drift 18s ease-in-out infinite reverse;
}

.brand-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    animation: rise-left 0.8s ease both;
}

.login-logo {
    width: min(280px, 100%);
    height: auto;
    margin-bottom: 22px;
    animation: pop 0.7s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.login-logo-small {
    width: min(380px, 100%);
    height: auto;
    margin-bottom: 18px;
}

.eyebrow {
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
}

.brand h1 {
    font-family: Sora, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
}

.name-green {
    display: block;
    color: var(--green);
}

.name-orange {
    display: block;
    color: var(--orange);
}

.tagline {
    margin-top: 18px;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 700;
    max-width: 28ch;
    animation: fade 0.8s 0.2s ease both;
}

.intro {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 42ch;
}

.points {
    margin-top: 28px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.points li {
    position: relative;
    padding-left: 28px;
    color: var(--ink);
    font-weight: 600;
}

.points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 5px rgba(242, 154, 64, 0.16);
}

.card {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 48px;
    background: #fff;
    box-shadow: -18px 0 40px rgba(22, 48, 39, 0.06);
    animation: rise-right 0.85s ease both;
}

.card-inner {
    width: 100%;
    max-width: 380px;
}

.card h2 {
    font-family: Sora, sans-serif;
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.card-copy {
    color: var(--muted);
    margin-bottom: 28px;
}

form {
    display: grid;
    gap: 18px;
}

.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 56px;
    border: 1.5px solid #d7e8dc;
    border-radius: 14px;
    padding: 18px 16px 0;
    font: inherit;
    background: #fbfffc;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a9086;
    pointer-events: none;
    transition: 0.18s ease;
}

.field input:focus,
.field input:not(:placeholder-shown) {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(55, 174, 106, 0.14);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green);
}

.error {
    color: #b42318;
    background: #feecec;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    animation: shake 0.45s ease;
}

button {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--green), #2f9b5f);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
    transform: translateX(-120%);
    animation: shine 3.4s ease-in-out infinite;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(55, 174, 106, 0.28);
    background: linear-gradient(90deg, var(--green), var(--orange));
}

button:disabled {
    cursor: wait;
    transform: none;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

button.loading .btn-text {
    display: none;
}

button.loading .btn-loader {
    display: inline-block;
}

.success {
    margin-top: 8px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(55, 174, 106, 0.12);
    color: var(--green);
    font-weight: 700;
    text-align: center;
    animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.card.shake .card-inner {
    animation: shake 0.45s ease;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(28px, 18px) scale(1.08); }
}

@keyframes rise-left {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rise-right {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shine {
    0%, 55% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }

    .brand {
        min-height: auto;
        padding: 40px 24px 28px;
    }

    .card {
        min-height: auto;
        padding: 28px 24px 48px;
        box-shadow: none;
    }

    .brand-inner,
    .card-inner {
        margin-inline: auto;
        text-align: left;
    }
}
