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

:root {
    --accent: #228264;
    --accent-dark: #17644d;
    --ink: #19312b;
    --muted: #7a8b85;
    --line: #d8e1de;
    --surface: #ffffff;
    --canvas: #edf1ef;
    --danger: #c94e44;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 10%, rgba(49, 145, 111, .08), transparent 33%),
        var(--canvas);
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.login-shell {
    position: relative;
    width: min(430px, calc(100vw - 40px));
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #d5dfdb;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(33, 64, 54, .13), 0 3px 10px rgba(33, 64, 54, .05);
}

.login-shell::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #1d7358, #4ab48c, #1d7358);
}

.login-panel {
    padding: 44px 48px 38px;
}


.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    color: #172d27;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.5px;
}

.login-header p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #40554e;
    font-size: 13px;
    font-weight: 650;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    color: #203932;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-input::placeholder {
    color: #a1afaa;
}

.form-input:focus {
    background: #ffffff;
    border-color: #55a98a;
    box-shadow: 0 0 0 3px rgba(34, 130, 100, .1);
}

.error-msg {
    min-height: 21px;
    margin: -1px 0 10px;
    color: var(--danger);
    font-size: 13px;
}

.btn-login {
    width: 100%;
    height: 46px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 17px rgba(23, 100, 77, .18);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-login:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 21px rgba(23, 100, 77, .23);
}

.btn-login:disabled {
    background: #8ba098;
    box-shadow: none;
    cursor: wait;
    transform: none;
}

.login-footer {
    margin-top: 30px;
    color: #a0aca8;
    font-size: 10px;
    letter-spacing: .4px;
    text-align: center;
}

@media (max-width: 480px) {
    body {
        padding: 0;
        background: #ffffff;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel {
        padding: 40px 28px;
    }
}