* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
    background-color: #f5f4ee;
    color: #26241f;
}

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

.login-card {
    width: min(420px, 92vw);
    background-color: #fffdf7;
    border: 1px solid #e2ddcf;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(38, 36, 31, 0.12);
    overflow: hidden;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 26px 22px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #c2613f;
    color: #ffffff;
}

.logo svg {
    width: 24px;
    height: 24px;
}

.subtitle {
    font-size: 12.5px;
    color: #6e685b;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 26px 24px;
}

.field {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6e685b;
    pointer-events: none;
}

.field input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 40px;
    background-color: #fffdf7;
    border: 1px solid #e2ddcf;
    border-radius: 9px;
    font-size: 13.5px;
    color: #26241f;
    outline: none;
}

.field input::placeholder {
    color: #b3ac9a;
}

.field input:focus {
    border-color: #c2613f;
}

.login-btn {
    height: 42px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    background-color: #c2613f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.login-btn:hover {
    background-color: #a34e30;
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.register-row {
    margin-top: -2px;
    text-align: center;
    font-size: 13px;
    color: #6e685b;
}

.register-link {
    color: #c2613f;
    text-decoration: none;
}

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

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.toast {
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #34c759;
}

.toast.error {
    background-color: #ff3b30;
}
