* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

:root {
    --background-color: white;
    /* --background-color: rgb(240, 235, 235); */
    --text-color: black;
    --label-color: #555;
    --input-background-color: white;
    --input-text-color: black;
    --input-border-color: #ccc;
    --sub-text-color: #444;
    --button-color: #2563eb;
    /* --accent: #2563eb; */
    /* --link-color: #ff0050; */
    /* --button-color: #6f42c1;
    --link-color: #6f42c1; */
    --button-hover-color: #7f53d2;
}

/* .dark-mode {
    --background-color: black;
    --text-color: white;
    --label-color: white;
    --input-background-color: rgb(34, 33, 33);
    --input-text-color: white;
    --input-border-color: rgb(34, 33, 33);
    --sub-text-color: #999;
} */

body {
    background: linear-gradient(135deg, var(--button-color), #764ba2);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

:root {
    --font-heading: "Poppins", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, button, input, textarea, select, date {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.45;
}

/* Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    /* margin: .4em 0 .6em; */
}

.login-container {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    /* box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); */
    width: 100%;
    /* max-width: 400px; */
    margin: 2em 0;
    width: min(400px, 100%);
    /* background-color: red; */
}

.login-form h2 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.login-form p {
    margin-bottom: 1.5rem;
    color: var(--sub-text-color);
}

.login-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: var(--label-color);
    font-family: var(--font-body);
}

.login-form input[type="email"],
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6eef5;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
    color: #08122a;
    margin-bottom: 15px;
}

.login-form input:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px #e6eaf0;
    outline: none;
}

.show-password {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #555;
}

.show-password input {
    margin-right: 0.3rem;
}

.show-password label {
    margin: 0;
}

.login-form button {
    padding: 12px;
    border: none;
    border-radius: 12px;

    background: #2563eb;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .12s ease,
        box-shadow .18s ease;
    width: 100%;
    text-align: center;
    /* width: fit-content; */
    display: block;
    /* margin-top: 15px; */
}

/* .login-form button:hover {
    background: #7f53d2;
} */

.links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
}

.links a {
    color: var(--button-color);
    text-decoration: none;
    transition: color 0.2s;
}

/* .links a:hover {
    color: #7f53d2;
} */

li, p.error, div.err-msg {
    list-style-type: none;
    background: #fff5f5;
    border: 1px solid #ffe1e1;
    color: #8b1c1c;
    padding: 1em;
    box-sizing: border-box;
    font-size: .9em;
    border-radius: .3em;
    margin-bottom: 1em;
}

@media (max-width: 500px) {
    body {
        background: var(--background-color);
    }

    .login-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}