/* f:\Chris\iPage\nd\roman-nd\root\chadoon\www\styles.css */

/* === Global & Typography === */
body {
    margin: 0;
    background-color: #ffffff;
    /* Set a base font for the entire application, inherited by most elements. */
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem; /* Base font size for readability */
}


/* === Layout Containers === */

.form-container,
.success-container {
    padding: 30px 20px;
    width: 100%;
    max-width: 450px; /* Constrain form width */
    margin: 30px auto 50px auto;
    box-sizing: border-box;
}

.form-container h2,
.success-container h2 {
    margin-bottom: 30px;
    font-size: 1.9em;
    font-weight: 600;
    color: #333;
}

/* === Button Overrides === */
/*
  This overrides Bulma's default button styles.
  By ensuring this stylesheet is loaded AFTER Bulma, we can avoid `!important`.
  Apply the .button class to all button-like elements for consistent styling.
*/
.button {
    background-color: #00d1b2;
    border-color: transparent;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    /* Other properties like border-radius, text-align, etc., are inherited from Bulma's .button */
}

.button:hover {
    background-color: #00b89c;
    color: #fff; /* Ensure text color remains white on hover */
}

.button:active {
    background-color: #009e86;
    color: #fff;
}

/* Remove Bulma's default box-shadow on focus and provide a clear accessibility outline */
.button:focus {
    outline: 2px solid #009e86;
    outline-offset: 2px;
    box-shadow: none;
}

/* Ensure anchor tags styled as buttons do not get underlined, even on hover */
a.button,
a.button:hover {
    text-decoration: none;
}


/* === Form Element Styling === */
.form-container {
    text-align: left;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
    border-color: #00d1b2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 209, 178, 0.2);
}

.form-container .terms {
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #555;
}

.form-container .terms label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-container .terms input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.form-container .terms a,
.form-container .signin-link a {
    color: #00d1b2;
    text-decoration: none;
    font-weight: 500;
}

.form-container .terms a:hover,
.form-container .signin-link a:hover {
    text-decoration: underline;
}

.form-container .button[type="submit"] {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1em;
}

.form-container .signin-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: #555;
}

/* === Message & Notification Styling === */

.form-container .message p {
    background-color: #ffe0e6;
    color: #cc0033;
    border: 1px solid #ffb3c1;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 0 0 20px 0; /* Add margin-bottom here */
    font-size: 0.95em;
}

/* Success message styling */
.success-container h2 {
    color: #00d1b2;
}

.success-container p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 25px;
}

.success-container a {
    color: #00d1b2;
    text-decoration: none;
    font-weight: bold;
}

.success-container a:hover {
    text-decoration: underline;
}

/* === Masthead Responsive Web design === */
.masthead-nav .button {
    /* Adjust these values to control the size of the masthead buttons */
    font-size: 1.5em;
    padding: 6px 12px;
    line-height: normal;
}

.masthead-logo img {
    width: 300px;
    height: auto;
    display: block;
}

.masthead {
    align-items: flex-start;
    flex-direction: row;
    padding: 30px 10px;
}
.masthead-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}
    .masthead-nav .button {
    font-size: 1.0em;
    padding: 6px 10px;
    margin-bottom: 0px;
}   

@media (min-width: 340px) {

    .masthead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 30px 20px;
    }
}
/* 
@media (max-width: 600px) {
    .masthead {
        align-items: flex-start;
        flex-direction: row;
        padding: 30px 10px;
    }
    .masthead-logo img {
        width: 100%;
        max-width: 180px;
        height: auto;
    }
     .masthead-nav .button {
        font-size: 1.0em;
        padding: 6px 10px;
        margin-bottom: 0px;
    }   
} */