:root {
    --login-bg: #eef3ef;
    --login-surface: #ffffff;
    --login-text: #10231b;
    --login-muted: #6b7280;
    --login-border: #d6dce0;
    --login-primary: #22c55e;
    --login-primary-dark: #15803d;
    --login-shadow: 0 25px 70px rgba(16, 35, 27, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 28%),
        linear-gradient(135deg, #f4f7f6 0%, var(--login-bg) 100%);
    color: var(--login-text);
}

.login-wrapper {
    width: 100%;
    max-width: 1180px;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    background: var(--login-surface);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    box-shadow: var(--login-shadow);
}

.login-brand {
    padding: 64px 72px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(6, 25, 17, 0.82), rgba(6, 25, 17, 0.96)),
        url('../images/bg_login.png') center center / cover no-repeat;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(74, 222, 128, 0.9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-size: 28px;
    font-weight: 700;
}

.brand-copy h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
}

.brand-copy span {
    display: block;
    margin-top: 8px;
    color: #7ef0aa;
    font-size: 12px;
    letter-spacing: 4px;
}

.brand-content h2 {
    max-width: 520px;
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 500;
}

.brand-content h2 strong {
    color: #7ef0aa;
}

.brand-content p {
    max-width: 460px;
    margin: 0;
    color: #d4e7dc;
    font-size: 17px;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.feature-card {
    padding: 20px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.16);
    color: #7ef0aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.feature-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.feature-card small {
    display: block;
    color: #d4e7dc;
    line-height: 1.6;
    font-size: 13px;
}

.login-form-area {
    padding: 56px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 440px;
}

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

.logo_form img {
    max-width: 180px;
    height: auto;
}

.login-box h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 32px;
    color: var(--login-text);
}

.subtitle {
    margin: 0 0 36px;
    text-align: center;
    color: var(--login-muted);
    font-size: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--login-border);
    border-radius: 10px;
    padding: 0 54px 0 46px;
    font-size: 15px;
    color: var(--login-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box input::placeholder {
    color: #9aa4af;
}

.input-box input:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.input-icon,
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-icon {
    left: 16px;
    color: var(--login-primary-dark);
    font-size: 16px;
    font-weight: 700;
}

.toggle-password {
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--login-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 8px;
}

.toggle-password:hover {
    color: var(--login-primary-dark);
}

.form-submit {
    margin-top: 30px;
    margin-bottom: 0;
}

.btn-login {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--login-primary), var(--login-primary-dark));
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.24);
    filter: brightness(1.02);
}

@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .login-wrapper {
        min-height: auto;
        border-radius: 18px;
    }

    .login-brand {
        display: none;
    }

    .login-form-area {
        padding: 38px 22px;
    }

    .login-box h2 {
        font-size: 28px;
    }
}
