:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background:
        linear-gradient(135deg,
            #3f220f,
            #ad5b1d);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.login-card,
.register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    max-width: 420px;
    padding: 38px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card img,
.register-card img {
    display: inline;
    width: auto;
    height: 72px;
    filter: invert(1);
}

.subtitle {
    color: #6d6259;
    margin: 0 0 28px;
    text-align: center;
    margin-top: 15px;
}

label {
    color: #3d3028;
    display: block;
    font-weight: 700;
    margin: 18px 0 7px;
}

input {
    border: 1px solid #cfc6be;
    border-radius: 8px;
    font: inherit;
    padding: 12px;
    width: 100%;
}

input:focus {
    border-color: #a85218;
    box-shadow: 0 0 0 3px rgba(168, 82, 24, .15);
    outline: 0;
}

.hint {
    color: #766b63;
    font-size: .85rem;
    margin-top: 6px;
}

button {
    background: #a85218;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-top: 26px;
    padding: 13px;
    width: 100%;
}

button:hover {
    background: #843e10;
}

.error {
    background: #fff0ee;
    border: 1px solid #e6aaa2;
    border-radius: 8px;
    color: #9b251b;
    margin-bottom: 18px;
    padding: 11px 12px;
}

.register-link,
.login-link,
.back {
    color: #77421e;
    display: block;
    margin-top: 22px;
    text-align: center;
    text-decoration: none;
}

.register-link:hover,
.back:hover {
    text-decoration: underline;
}