:root {
    --green: #31965c;
    --green-dark: #217344;
    --green-light: #e7f5ec;
    --background: #f5f8f5;
    --surface: #ffffff;
    --text: #20392b;
    --muted: #849087;
    --border: #e3ebe4;
    --red: #c45454;
    --red-light: #fceaea;
    --radius: 20px;
}

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

body {
    font-family: "Nunito", sans-serif;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: var(--green);
    font-weight: 800;
}

a:hover {
    color: var(--green-dark);
}

button {
    cursor: pointer;
}

svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.3;
    flex-shrink: 0;
}

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

.showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(35px, 6vw, 100px);
    overflow: hidden;
    background: linear-gradient(145deg, #237b48, #46aa70);
    color: white;
}

.showcase::before,
.showcase::after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    pointer-events: none;
}

.showcase::before {
    width: 550px;
    height: 550px;
    right: -250px;
    top: -200px;
}

.showcase::after {
    width: 450px;
    height: 450px;
    left: -250px;
    bottom: -200px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: inherit;
}

.brand:hover {
    color: inherit;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: white;
    box-shadow: 0 4px 0 var(--green-dark);
}

.showcase .brand {
    position: absolute;
    top: 40px;
    left: clamp(35px, 6vw, 100px);
}

.showcase .brand-icon {
    background: white;
    color: var(--green-dark);
    box-shadow: 0 4px 0 #b7ddc4;
}

.showcase-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    animation: fade-up .5s ease both;
}

.showcase-content h1 {
    font-size: clamp(35px, 4vw, 58px);
    line-height: 1.13;
    font-weight: 900;
    letter-spacing: -2px;
}

.showcase-content > p {
    color: #e0f1e5;
    font-size: 17px;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 450px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 800;
    font-size: 15px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #ffffff20;
    border: 1px solid #ffffff25;
}

.preview {
    background: #193b2a;
    border: 1px solid #ffffff25;
    border-radius: 17px;
    margin-top: 40px;
    padding: 18px;
    max-width: 430px;
    box-shadow: 0 15px 40px #12382030;
    animation: float 6s ease-in-out infinite;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ffffff15;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #e97a7a;
}

.dot.yellow {
    background: #f0c56d;
}

.dot.green {
    background: #83c994;
}

.preview-file {
    font-size: 11px;
    margin-left: auto;
    color: #8cb49b;
}

.preview pre {
    padding: 20px 4px;
    font: 14px/1.9 Consolas, monospace;
    color: #d1ead7;
    white-space: pre-wrap;
}

.syntax-purple {
    color: #cdb0f0;
}

.syntax-yellow {
    color: #f2d388;
}

.syntax-green {
    color: #89d6a0;
}

.preview-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-radius: 10px;
    background: #ffffff0d;
    color: #9cdeb0;
    font-size: 12px;
    font-weight: 800;
}

.preview-footer svg {
    width: 17px;
    height: 17px;
}

.auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 35px;
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 430px;
    animation: fade-up .4s ease both;
}

.mobile-brand {
    display: none;
    margin-bottom: 35px;
}

.mobile-brand span {
    color: var(--green);
}

.auth-heading {
    margin-bottom: 28px;
}

.heading-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: var(--green-light);
    color: var(--green);
    margin-bottom: 20px;
    border: 1px solid #d5e9db;
}

.heading-icon svg {
    width: 28px;
    height: 28px;
}

.auth-heading h1 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.auth-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 7px;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 900;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #94a59a;
    pointer-events: none;
    display: flex;
}

.input-icon svg {
    width: 19px;
    height: 19px;
}

.form-input {
    width: 100%;
    height: 53px;
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    padding: 0 44px;
    background: white;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: border-color .2s, box-shadow .2s;
}

.form-input::placeholder {
    color: #a5afa7;
    font-weight: 600;
}

.form-input:hover {
    border-color: #c9d9cd;
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px #31965c12;
}

.password-toggle {
    position: absolute;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
}

.password-toggle:hover {
    background: var(--green-light);
    color: var(--green);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.form-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.6;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 53px;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: white;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 4px 0 var(--green-dark);
    transition: transform .18s, filter .18s, box-shadow .18s;
    margin-top: 5px;
}

.submit-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--green-dark);
}

.submit-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--green-dark);
}

.submit-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.submit-button svg {
    width: 19px;
    height: 19px;
}

.auth-switch {
    margin-top: 28px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 11px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    animation: fade-up .25s ease both;
}

.alert svg {
    width: 19px;
    height: 19px;
    margin-top: 1px;
}

.alert.error {
    color: var(--red);
    background: var(--red-light);
    border: 1px solid #f0cdcd;
}

.alert.success {
    color: var(--green-dark);
    background: var(--green-light);
    border: 1px solid #cce5d3;
}

.alert ul {
    padding-left: 16px;
}

.password-meter {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.password-meter span {
    flex: 1;
    height: 5px;
    border-radius: 5px;
    background: #e3ebe4;
    transition: background .25s;
}

.password-meter[data-strength="1"] span:nth-child(-n+1) {
    background: #db7373;
}

.password-meter[data-strength="2"] span:nth-child(-n+2) {
    background: #e2ac4c;
}

.password-meter[data-strength="3"] span:nth-child(-n+3) {
    background: #87bc70;
}

.password-meter[data-strength="4"] span {
    background: var(--green);
}

.auth-footer {
    margin-top: 35px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.auth-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.auth-footer a:hover {
    color: var(--green);
}

.auth-footer svg {
    width: 15px;
    height: 15px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #8ac99e;
    outline-offset: 4px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

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

    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 950px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .showcase {
        display: none;
    }

    .auth-side {
        min-height: 100vh;
    }

    .mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .auth-side {
        padding: 30px 22px;
        align-items: flex-start;
    }

    .auth-heading h1 {
        font-size: 29px;
    }

    .auth-container {
        padding-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}