html {
    height: 100%;
    min-height:300px;
    overflow:hidden;
}

:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    /*background-color: #242424;*/
    background-color: #ddd;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    padding: 1px 1px 0 1px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    flex-direction: column;
    font-family: Arial, sans-serif;
    /*overflow-y: hidden;*/ /* Hides the vertical scrollbar */
    overflow: hidden;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    /*background-color: #1a1a1a;*/
    cursor: pointer;
    transition: border-color 0.25s;
    width: 5em; /* Standard width */
}

    button:hover {
        border-color: #646cff;
    }

    button:focus,
    button:focus-visible {
        outline: 4px auto -webkit-focus-ring-color;
    }

button[type="submit"] {
    margin-top: 10px;
    background-color: #646cff;
    color: white;
    border: none;
}

    button[type="submit"]:hover {
        background-color: #535bf2;
    }

content {
    /*min-height:300px;*/
}

header {
    position: relative;
    /*background-color: #f0f0f0;*/
    text-align: center;
    background-color: teal;
}

    header img {
        width: 100%;
        /*height: 300px;*/ /* Increased for better banner */
        object-fit: cover;
        filter: brightness(0.8); /* Prettify with overlay effect */
    }

    header h1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-shadow: 4px 4px 8px rgba(0,0,0,0.8);
        font-size: 3em;
    }

footer {
    vertical-align: bottom;
    height: 30px;
    background-color: #ddd;
    padding-bottom: 20px;
    padding-top:0px;
    text-align: center;
    margin:0;
    vertical-align:bottom;
}

main {
    flex: 1;
    padding: 10px;
    text-align: center;
    min-height: 300px;
    position:relative;
    color:black;
}

nav {
    margin-right:20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: right;
    gap: 20px;
    max-height: 20px;
}

a {
    font-weight: 500;
    color: #646cff;
    text-decoration: underline;
}


h1 {
    font-size: 4em; /* Tripled from typical 3.2em */
    line-height: 1.1;
    width:100%;
}

h2 {
    font-size: 1em;
    line-height: 1;
    font-weight: bold;
}

h3 {
    font-size: 1em;
    line-height: 1;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
}
c

form {
    display: flex;
    flex-direction: column;
}

input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


label {
    /*margin-top: 10px;*/
    text-align: left;
    min-width: 8em;
}

section {
    padding: 20px;
}

ul{
    color: inherit;
}

#errorMsg {
    color: red;
    margin-top: 10px;
    text-align: left;
}

#loginArea {
    padding: 20px;
}

#loginSection {
    width:25em; /* Reduced width for ~50 chars */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#root {
    max-width: 1280px;
    /*min-width:800px;*/
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: black;
}

.div-content {
    width:99%;
    height:99%;
    background-color: teal;
}

.div-right {
    display: flex;
    justify-content: flex-end; /* Aligns flex items to the end of the main axis (right) */
}

.div-row {
    width: 99%;
    align-items: center;
}

.div-pad20 {
    margin: 20px;
}

.equal-width-table {
    width: 100%;
    /*table-layout: fixed;*
        /*padding: 8px;*/
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: left;
    }

.field-error-message {
    color: #ef4444; /* Red for errors */
    font-size: 0.875rem; /* text-sm */
    margin-top: 4px;
    text-align: left; /* Align error messages with fields */
    height: 1.25rem; /* Fixed height to prevent layout shifts */
}

    .field-error-message:empty {
        display: none;
    }

.form-group {
    display: flex;
    align-items: center; /* Vertically aligns label and input */
}

.logInBtn{
    padding-right:10px;
    align-self:auto;
}

.my-background-div {
    width: stretch; /* Set a width for the div */
    height: 150px; /* Set a height for the div */
    background-image: url('../images/indexHeader.png'); /* Specify the image path */
    background-size: cover; /* Optional: Adjust how the image fits */
    background-position: center; /* Optional: Position the image */
    background-repeat: no-repeat; /* Optional: Prevent image repetition */
    /*border: 1px solid #ccc;*/ /* Optional: Add a border for visibility */
    color: white;
    background-color:teal;
}

.password-container {
    position: relative;
    width: 100%;
}

    .password-container input {
        padding: 10px;
        /* Add padding to the right to prevent text from overlapping the icon */
        padding-right: 48px;
        box-sizing: border-box;
    }

    .password-container i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #aaa;
    }

.signUpLink {
    margin-left: 20px;
}

/* --- Two-Column Form Layout --- */

/* Use grid layout for each label-input group */
#resetPasswordModal .form-group {
    display: grid;
    /* Define two columns: one for the label, one for the input */
    grid-template-columns: 1fr 2fr;
    align-items: center; /* Vertically align label with the input */
    gap: 1rem; /* Space between the label and the input */
}

    /* Align label text to the right for a clean edge */
    #resetPasswordModal .form-group label {
        text-align: left;
        font-weight: 500;
    }

/* --- Button Row Layout --- */

/* Target the button container */
#resetPasswordModal .div-right {
    display: flex;
    /* Center the buttons horizontally */
    justify-content: center;
    gap: 1rem; /* Add space between the two buttons */
}

    /* Adjust button width for the row layout */
    #resetPasswordModal .div-right button {
        /* You can set a specific width or let them size to their content */
        width: 120px;
        float:right;
    }

/* --- Reset Password Modal Styles --- */

/* Main dialog box styling */
#resetPasswordModal {
    width: 90%; 
    min-width: 450px;  /*Set a maximum width for larger screens */
    padding: 2rem;  /*Add generous space between the content and the dialog edges */
    border-radius: 8px;  /*Softer, modern corners*/ 
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

   /*  Style the form for better element spacing */
    #resetPasswordModal form {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;  /*Creates vertical space between each form group */
    }

    /* Ensure form groups take up the full width */
    /*#resetPasswordModal .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;  Space between label and input 
    }*/

/*     Style for the input fields */
    #resetPasswordModal input.signUpInput {
        padding: 0.75rem;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        font-size: 1rem;
    }

/*     Common styling for both buttons */
    #resetPasswordModal button {
        padding: 0.6rem 1.2rem;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.2s ease-in-out;
    }

/*         Specific styling for the submit button */
        #resetPasswordModal button[type="submit"] {
            background-color: #3b82f6;  /*A nice blue */
            color: white;
        }

            #resetPasswordModal button[type="submit"]:hover {
                background-color: #2563eb;
            }

/*         Specific styling for the cancel button */
        #resetPasswordModal button[type="button"] {
            background-color: #e2e8f0;  /*Light gray */
            color: #475569;
        }

            #resetPasswordModal button[type="button"]:hover {
                background-color: #cbd5e1;
            }

    /* Style the semi-transparent backdrop behind the dialog */
    #resetPasswordModal::backdrop {
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
    }



