:root {
    color-scheme: light dark;
}

address {
    margin: 0.3rem;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
}

em {
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-thickness: 2px;
}

main {
    padding-left: 5%;
    padding-right: 5%;
}

article {
    margin: auto;
    /* display: flex; */
    /* flex-direction: column; */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1024px;
    text-align: left;
    /* margin-inline: auto; */
}

body heading img {
    margin: 0;
    object-fit: scale-down;
    max-width: 33%;
    background-color: white;
    min-width: 200px;
    vertical-align: bottom;
    max-height: 100px;
}

.logo {
    text-align: left;
    padding-top: 1rem;
    padding-bottom: 1rem;
    align-items: baseline;
    background-color: white;
    width: 100%;
    border-bottom: 3px solid white;
}

footer {
    text-align: center;
    margin: 1rem 1rem 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    margin-top: 2rem;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="password"]:focus {
    outline: none;
}
/* 
section {
    margin: 1rem;
} */


input[type="checkbox"] {
    margin-top: 2px;
}


button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.success {
    border: 1px solid;
}


@media (prefers-color-scheme: light) {
    article {
        background-color: #f5f5f5;
    }

    .logo {
        background-color: white;
        border-bottom: 3px solid white;
    }

    a {
        color: #007bff;
    }

    a:hover {
        color: #0056b3;
    }

    h1 {
        color: #333;
    }

    label {
        color: #333;
    }

    input[type="text"]:disabled {
        background-color: #f8f9fa;
        color: #666;
    }

    input[type="password"]:focus {
        border-color: #007bff;
        outline: none;
    }

    .terms-link {
        color: #007bff;
    }

    button {
        background-color: #007bff;
        color: white;
    }

    button:hover {
        background-color: #0056b3;
    }

    .error {
        background-color: #f8d7da;
        color: #721c24;
        border-color: #f5c6cb;
    }

    #errorMessage {
        background-color: #f8d7da;
        color: #721c24;
        border-color: #f5c6cb;
    }

    .success {
        background-color: #d4edda;
        color: #155724;
        border-color: #c3e6cb;
    }

    /* Modal Styles */
    .modal {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .modal-content {
        background-color: white;
    }

    .close {
        color: #aaa;
    }

    .close:hover {
        color: #000;
    }

    .terms-content h2 {
        color: #333;
        border-bottom-color: #007bff;
    }

    .terms-content h3 {
        color: #555;
    }
}

@media (prefers-color-scheme: dark) {
    article {
        background-color: #2a2a2a;
    }

    .logo {
        background-color: white;
        border-bottom: 3px solid white;
    }

    a {
        color: #007bff;
    }

    a:hover {
        color: #52a6ff;
    }

    h1 {
        color: #dddddd;
    }

    label {
        color: #dddddd;
    }

    input[type="text"]:disabled {
        background-color: #2a2a2a;
        color: #bdbdbd;
    }

    input[type="password"]:focus {
        border-color: #007bff;
        outline: none;
    }

    .terms-link {
        color: #007bff;
    }

    button {
        background-color: #007bff;
        color: white;
    }

    button:hover {
        background-color: #52a6ff;
    }

    .error {
        background-color: #721c24;
        color: #f8d7da;
        border-color: #f5c6cb;
    }

    #errorMessage {
        background-color: #721c24;
        color: #f8d7da;
        border-color: #f5c6cb;
    }

    .success {
        background-color: #155724;
        color: #d4edda;
        border-color: #c3e6cb;
    }

    /* Modal Styles */
    .modal {
        background-color: rgba(195, 195, 195, 0.5);
    }

    .modal-content {
        background-color: black;
    }

    .close {
        color: #aaa;
    }

    .close:hover {
        color: white;
    }

    .terms-content h2 {
        color: #b4b4b4;
        border-bottom-color: #007bff;
    }

    .terms-content h3 {
        color: #d2d2d2;
    }

}