:root {
    --brand-main: #2f6b3e;
    --brand-deep: #204b2d;
    --brand-soft: #eaf5ed;
    --accent: #f3a533;
    --text-main: #1f2d24;
    --text-muted: #6b7a70;
    --line: #dce7df;
    --danger: #c0392b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        linear-gradient(135deg, rgba(47, 107, 62, 0.92), rgba(32, 75, 45, 0.94)),
        url("../img/logo/baner.png") center/cover no-repeat;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px;
    color: #fff;
}

.auth-showcase h1 {
    max-width: 620px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.auth-showcase p {
    max-width: 540px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84);
}

.auth-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: clamp(22px, 4vw, 32px);
    background: rgba(249, 252, 247, 0.96);
}

.auth-card {
    width: 100%;
    max-width: 396px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 104px;
    height: 104px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fffef7, #ffe9b7);
    box-shadow: 0 14px 34px rgba(32, 75, 45, 0.22);
    overflow: hidden;
}

.brand-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 22px;
    letter-spacing: 0;
}

.brand span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

h2 {
    margin: 0 0 8px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 30px;
}

.subtitle {
    margin: 0 0 26px;
    color: var(--text-muted);
    line-height: 1.55;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    color: #1f6b36;
    background: #e4f6e9;
    border: 1px solid #bfe5ca;
}

.alert-danger {
    color: var(--danger);
    background: #fff0ee;
    border: 1px solid #f0c4bd;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.input-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--text-main);
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-control:focus {
    border-color: var(--brand-main);
    box-shadow: 0 0 0 4px rgba(47, 107, 62, 0.12);
}

.form-meta {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 20px;
}

a {
    color: var(--brand-main);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-main), var(--brand-deep));
    box-shadow: 0 16px 30px rgba(32, 75, 45, 0.25);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

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

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

    .auth-showcase {
        display: none;
    }

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

@media (max-width: 480px) {
    .auth-panel {
        padding: 20px 16px;
    }

    .brand {
        gap: 10px;
        margin-bottom: 22px;
    }

    .brand-logo {
        width: 82px;
        height: 82px;
        border-radius: 14px;
    }

    .brand-logo img {
        width: 118px;
        height: 118px;
    }

    h2 {
        font-size: 26px;
    }
}
