/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    /* Dark background for the whole page */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;

}

light-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #b5b5b5;
    /* Dark background for the whole page */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;

}

a {
    color: #4a74a0;
    text-decoration: none;
}

h2 {
    margin-top: 0;
    color: #7c7d7e;
    text-align: center;
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.auth-container {
    background: #2b2b2d;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.light-auth-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}


.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #a19c9c;
}

input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #3a3a3c;
    /* Add this line */
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #3a3a3c inset !important;
    /* Use inset shadow to cover background */
    -webkit-text-fill-color: #ffffff !important;
    /* Also set text color */
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #2d2b2b;
    border-radius: 6px;
    box-sizing: border-box;
    /* Critical for layout */
    font-size: 16px;
    transition: border-color 0.3s;
    color: #f1f1f1;
    background-color: #3a3a3c; /* Add this line */
}

input[type="text"]:placeholder-shown,
input[type="email"]:placeholder-shown,
input[type="password"]:placeholder-shown {
    background-color: #3a3a3c;
    /* Dark background */
    color: white;
    /* This is for the USER'S text when they type */
}

input:focus {
    outline: none;
    border-color: #007bff;
}

small {
    color: #777;
    display: block;
    margin-top: 5px;
    line-height: 1.4;
}

input[type="submit"],
button {
    width: 100%;
    padding: 12px;
    background-color: #0d131a;
    color: rgb(138, 143, 145);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #3a444f;
}

.error-box {
    background-color: #603d40;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #3c2729;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.box-1 {
    display: block;
    /* Default */
    width: 100%;
    background-color: rgb(64, 52, 52);
    margin-bottom: 10px;
    /* Space between them */
}