:root {
    --plum: #6b214f;
    --plum-dark: #4b1638;
    --plum-light: #8d3b70;
    --background: #f7f4f6;
    --white: #ffffff;
    --text: #29232a;
    --muted: #746b72;
    --border: #ded6dc;
    --danger: #a42834;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

body {
    min-height: 100vh;
    background:
        linear-gradient(
            135deg,
            rgba(107, 33, 79, 0.96),
            rgba(75, 22, 56, 0.96)
        );
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    border-radius: 18px;
    padding: 42px 38px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.brand {
    text-align: center;
    margin-bottom: 34px;
}

.brand-mark {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum);
    color: var(--white);
    font-size: 34px;
    font-weight: 700;
}

.brand h1 {
    margin: 0;
    color: var(--plum);
    font-size: 30px;
}

.brand p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 15px;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(107, 33, 79, 0.12);
}

button {
    width: 100%;
    height: 50px;
    margin-top: 26px;
    border: 0;
    border-radius: 9px;
    background: var(--plum);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: var(--plum-dark);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.message.error {
    display: block;
    color: var(--danger);
    background: #fff0f1;
    border: 1px solid #f0c8cc;
}

.security-note {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 520px) {
    .login-card {
        padding: 34px 24px;
        border-radius: 14px;
    }
}
