@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --green-950: #092f20;
    --green-900: #0d462d;
    --green-700: #168346;
    --green-600: #1fa858;
    --green-100: #dff5e7;
    --green-50: #f2fbf5;
    --ink: #173126;
    --muted: #66776e;
    --border: #dce8e0;
    --white: #ffffff;
    --danger: #a93838;
    --danger-bg: #fff0f0;
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #eef7f1;
}

a {
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 52px clamp(36px, 6vw, 90px);
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 85%, rgba(73, 205, 120, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(5, 43, 28, 0.94), rgba(10, 87, 48, 0.9)),
        url('images/ewasterecycling.jpg') center/cover;
}

.auth-brand::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 70px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.brand-logo {
    position: relative;
    z-index: 1;
    width: 185px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.brand-logo img {
    display: block;
    width: 100%;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 70px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #90ebb0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-copy h1 {
    max-width: 520px;
    margin-bottom: 22px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.brand-copy > p {
    max-width: 530px;
    color: #d9eee1;
    font-size: 16px;
    line-height: 1.75;
}

.brand-copy ul {
    display: grid;
    gap: 14px;
    margin-top: 30px;
    list-style: none;
}

.brand-copy li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eef9f1;
    font-size: 14px;
    font-weight: 600;
}

.brand-copy li::before {
    content: '\2713';
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    flex: 0 0 24px;
    color: #0d5b34;
    border-radius: 50%;
    background: #86e5a7;
}

.back-home {
    position: relative;
    z-index: 1;
    width: fit-content;
    color: #d9eee1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back-home:hover {
    color: var(--white);
}

.auth-panel {
    display: grid;
    min-height: 100vh;
    padding: 50px 24px;
    place-items: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(63, 196, 111, 0.12), transparent 25%),
        #f7fbf8;
}

.auth-card {
    width: min(100%, 500px);
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid rgba(21, 96, 53, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 68, 39, 0.12);
}

.auth-heading {
    margin-bottom: 26px;
    text-align: center;
}

.leaf-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 16px;
    background: var(--green-100);
    font-size: 25px;
}

.auth-heading h2 {
    margin-bottom: 9px;
    color: var(--green-950);
    font-size: clamp(27px, 4vw, 34px);
    letter-spacing: -0.035em;
}

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

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 26px;
    padding: 5px;
    border-radius: 12px;
    background: #eef4f0;
}

.auth-tabs a {
    padding: 11px 14px;
    color: #65756c;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.auth-tabs a.active {
    color: var(--green-900);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(16, 76, 43, 0.1);
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 7px;
    color: #294237;
    font-size: 13px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #fbfdfb;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form input:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(31, 168, 88, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 66px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 6px;
    color: var(--green-700);
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-50%);
}

.submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 15px 20px;
    color: var(--white);
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    box-shadow: 0 12px 24px rgba(24, 139, 73, 0.22);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(24, 139, 73, 0.28);
}

.message {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.message p + p {
    margin-top: 4px;
}

.message.error {
    color: var(--danger);
    border: 1px solid #f3caca;
    background: var(--danger-bg);
}

.message.success {
    color: #146436;
    border: 1px solid #bde7cb;
    background: #edfaf1;
}

.switch-copy {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

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

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

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

    .brand-copy {
        margin: 55px 0 38px;
    }

    .brand-copy h1 {
        max-width: 650px;
        font-size: clamp(36px, 8vw, 55px);
    }

    .auth-panel {
        min-height: auto;
        padding: 45px 20px 65px;
    }
}

@media (max-width: 520px) {
    .auth-brand {
        padding: 24px 20px 32px;
    }

    .brand-logo {
        width: 155px;
    }

    .brand-copy {
        margin: 42px 0 30px;
    }

    .brand-copy ul {
        gap: 11px;
    }

    .auth-panel {
        padding: 30px 13px 45px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
}
