@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --dark: #063f25;
    --green: #0d7c3e;
    --gold: #c58b10;
    --soft: #eef3e5;
    --muted: #69766c;
    --line: #dbe4d4;
    --white: #ffffff;
    --danger: #b3261e;
}

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

body {
    font-family: 'DM Sans', Arial, sans-serif;
    background: var(--soft);
    min-height: 100vh;
    color: #26332b;
}

a {
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
}

.auth-box {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 26px 70px rgba(6, 63, 37, 0.13);
}

.auth-art {
    background: linear-gradient(135deg, #063f25, #0d7c3e 70%, #94a633);
    padding: 54px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.auth-art::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    right: -90px;
    top: -90px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-art::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    left: -60px;
    bottom: -60px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-art a {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.auth-art span {
    color: #f0d27a;
}

.auth-art h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 52px);
    line-height: 1.05;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.auth-art p {
    opacity: 0.9;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.mini-lines {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.mini-lines div {
    height: 56px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.auth-form {
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.auth-form p {
    color: var(--muted);
    margin-bottom: 26px;
}

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 14px 15px;
    font: inherit;
    outline: none;
    background: var(--white);
}

.field input:focus,
.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(13, 124, 62, 0.12);
}

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 15px;
    padding: 15px 18px;
    background: var(--green);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(13, 124, 62, 0.22);
    transition: 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    background: #096b34;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-weight: 800;
}

.auth-links a {
    color: var(--green);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--gold);
}

.message {
    padding: 13px 15px;
    border-radius: 13px;
    margin-bottom: 16px;
    font-weight: 700;
}

.message.ok {
    background: #e9f7ed;
    color: #0d6b38;
}

.message.bad {
    background: #fff0ee;
    color: var(--danger);
}

@media (max-width: 760px) {
    .auth-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
    }

    .auth-box {
        width: 100%;
        max-width: 420px;
        grid-template-columns: 1fr;
        border-radius: 22px;
        margin: 0 auto;
    }

    .auth-art {
        min-height: auto;
        padding: 26px 22px;
        gap: 12px;
    }

    .auth-art a {
        font-size: 22px;
    }

    .auth-art h1 {
        font-size: 27px;
        line-height: 1.08;
        max-width: 330px;
        margin-top: 12px;
    }

    .auth-art p {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 8px;
        max-width: 330px;
    }

    .mini-lines {
        display: none;
    }

    .auth-form {
        padding: 26px 22px;
    }

    .auth-form h2 {
        font-size: 30px;
        margin-bottom: 4px;
    }

    .auth-form p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .field {
        margin-bottom: 13px;
    }

    .field label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .field input,
    .field select {
        padding: 11px 13px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-btn {
        display: block;
        width: 72%;
        max-width: 260px;
        margin: 18px auto 0;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-links {
        margin-top: 14px;
        gap: 8px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .auth-page {
        padding: 12px;
    }

    .auth-box {
        border-radius: 18px;
    }

    .auth-art {
        padding: 24px 20px;
    }

    .auth-art a {
        font-size: 21px;
    }

    .auth-art h1 {
        font-size: 24px;
    }

    .auth-art p {
        font-size: 12px;
    }

    .auth-form {
        padding: 24px 20px;
    }

    .auth-form h2 {
        font-size: 28px;
    }

    .auth-btn {
        width: 80%;
    }
}

/* Demo account helper */
.demo-box {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(47, 32, 26, 0.14);
    border-radius: 14px;
    background: #faf4ed;
    color: #4a3128;
    font-size: 13px;
    line-height: 1.7;
}
