* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: #1A1A1A;
    font-family: 'Poppins', sans-serif;
}
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    min-height: 100vh;
    background: #f7faf7;
}
.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px clamp(32px, 7vw, 110px);
    color: #fff;
    background: linear-gradient(145deg, #087f14, #00b207 55%, #7bcf32);
}
.auth-visual::before,
.auth-visual::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    content: "";
}
.auth-visual::before {
    width: 480px;
    height: 480px;
    right: -180px;
    top: -120px;
}
.auth-visual::after {
    width: 380px;
    height: 380px;
    left: -220px;
    bottom: -150px;
}
.auth-brand,
.mobile-brand {
    position: relative;
    z-index: 1;
}
.auth-visual-content {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: clamp(32px, 7vw, 110px);
    max-width: 510px;
    transform: translateY(-50%);
}
.auth-visual-content h1 {
    max-width: 500px;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
}
.auth-visual-content p:last-child {
    max-width: 430px;
    color: rgba(255,255,255,.82);
}
.letter-spacing-1 {
    letter-spacing: 1px;
}
.auth-basket {
    position: absolute;
    z-index: 0;
    right: 2%;
    bottom: -3%;
    width: min(58%, 590px);
    opacity: .94;
}
.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(24px, 6vw, 96px);
    background: #fff;
}
.auth-home-link {
    position: absolute;
    top: 32px;
    right: clamp(24px, 6vw, 96px);
    color: #5c665c;
    font-size: .88rem;
    text-decoration: none;
    transition: color .2s ease;
}
.auth-home-link:hover,
.auth-home-link:focus {
    color: #00b207;
}
.auth-card {
    width: min(100%, 470px);
}
.mobile-brand {
    display: none;
}
.auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e9e5;
}
.auth-tab {
    position: relative;
    border: 0;
    padding: 0 0 12px;
    color: #7a817a;
    background: transparent;
    font-weight: 600;
}
.auth-tab.active {
    color: #00b207;
}
.auth-tab.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #00b207;
    content: "";
}
.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #303630;
    font-size: .88rem;
    font-weight: 500;
}
.auth-form input:not([type="checkbox"]) {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-form input:not([type="checkbox"]):focus {
    border-color: #00b207;
    box-shadow: 0 0 0 3px rgba(0,178,7,.12);
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 46px !important;
}
.password-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    color: #7a817a;
    background: transparent;
}
.remember-me {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #737a73 !important;
    font-size: .8rem !important;
}
.remember-me input {
    accent-color: #00b207;
}
.forgot-link {
    border: 0;
    padding: 0;
    color: #00a707;
    background: transparent;
    font-size: .8rem;
}
.auth-submit {
    border: 0;
    border-radius: 8px;
    padding: 13px;
    color: #fff;
    background: #00b207;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}
.auth-submit:hover {
    color: #fff;
    background: #009906;
    transform: translateY(-1px);
}
.auth-message {
    display: none;
    margin-bottom: 18px;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: .82rem;
}
.auth-message.show {
    display: block;
}
.auth-message.success {
    color: #176b20;
    background: #eaf8ec;
}
.auth-message.error {
    color: #a12c2c;
    background: #fff0f0;
}
.back-link {
    color: #00a707;
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .auth-page {
        display: block;
    }
    .auth-visual {
        display: none;
    }
    .auth-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 34px;
    }
    .auth-home-link {
        top: 28px;
        right: 20px;
    }
    .mobile-brand {
        display: block;
        margin-bottom: 42px;
    }
}
@media (max-width: 480px) {
    .auth-panel {
        padding: 28px 20px;
    }
    .mobile-brand {
        margin-bottom: 30px;
    }
}
