/* static/styles.css */


/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');


:root {
    --text-preview-color: #d6dcd8;     /* Text preview viewers */
    --border-color: #303732;   /* small text entry boxes */
    --flash-message-color: #cc4c46;
    --form-background-hover-color: #5f6e63;
    --form-secondary-background-color: #5f6e63;
    --text-inverse-color: #EAE6DE;     /* Text color for dark backgrounds */
    --button-color: #E5A028; /* orange buttons */
    --button-hover-color: #D86E1E; /* orange button hover */
    --text-color: #5f6e63;                /* Primary text color for DARK background*/
    --text-color: #3B3B45;                /* Primary text color for LIGHT background*/
    --link-color: #E5A028; /* orange */
    --main-background-color: #24242B;     /* matches header/footer */

    --transition: all 0.3s ease; /* Smooth transition for interactive effects */
    --border-radius: 5px; /* rounded corners */
    --position: relative;
}
.text-color {
    color: var(--text-color);
}

.text-inverse-color {
    color: var(--text-inverse-color);
}

.text-preview-color {           /* for text viewers */
    color: var(--text-preview-color);
}

.border-color {
    color: var(--border-color);
}

.button-color {
    color: var(--button-color);
}

.button-hover-color {
    color: var(--button-hover-color);
}

.link-color {
    color: var(--link-color); 
}

.flash-message-color {
    color: var(--flash-message-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 20px; /* Increased spacing between paragraphs */
}

h1 {
    margin-bottom: 30px;
}

.flash-messages, .flash-message {
    width: 250px;
    width: 80%;
    color: var(--flash-message-color);
    text-align: center;
    max-width: 600px;
    margin-bottom: 20px;
    padding: 10px;
}

body {
    background-color: #24242B;
    font-size: 125%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: var(--text-color);
}

.container {
    background: var(--form-secondary-background-color);
    padding: 40px;
    width: 400px;
    margin: auto;
    max-width: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: var(--position);
    transition: var(--transition);
}

.message {
    font-size: 18px;
    color: var(--text-color);
    background-color: var(--text-preview-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    margin: 10px 0;
}

form {
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    width: 150px;
    text-align: right;
    margin-right: 10px;
}

.form-group input {
    width: 250px; /* Set the width of the input fields */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-group button {
    width: auto;
    padding: 10px 20px;
    background-color: var(--button-color);
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 160px; /* Adjust based on the label width to align with the text boxes */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: var(--position);
    transition: var(--transition);
}

.form-group button:hover {
    background-color: var(--button-hover-color);
    box-shadow: var(--box-shadow-hover);
}

.form-group input[type="submit"] {
    width: auto;
    padding: 10px 20px;
    background-color: var(--button-color);
    color: black;
    border: none;
    cursor: pointer;
    margin-left: 160px; /* Adjust based on the label width to align with the text boxes */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: var(--position);
    transition: var(--transition);
}

.form-group input[type="submit"]:hover {
    background-color: var(--button-hover-color);
    box-shadow: var(--box-shadow-hover);
}

.form-group:last-of-type {
  margin-bottom: 0px; /* creates space between checkboxes and footer */
}

button {
    margin-top: 10px;
    width: auto;
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: var(--button-color);
    position: var(--position);
    transition: var(--transition);
}

button:hover {
    background-color: var(--button-hover-color);
}

.navigation ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.navigation li {
    margin: 0 10px; /* Add spacing between navigation links */
}

label {
  color: #a6a29a;
}

h4 {
  color: #cfcac1;  
}

h5 {
  color: #a6a29a;  
}

h2 {
  font-family: "Inter", Sans;
  font-size: 42px;
  color: #cfcac1;
  font-weight: 700;
}

h3 {
  font-family: "Inter", Sans;
  font-size: 18px;
  color: #cfcac1;
  font-weight: 400;
  line-height: 22px;
}

/* =====     Login, Register     ===== */

/* Ensuring both email and password input fields have the same height */
input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-sizing: border-box; /* ensures padding and border are included in the element's total width and height */
  margin-bottom: 5%;
}

/* Ensures email and password input fields have the same height */
input[type="inline-text"],
input[type="inline-email"],
input[type="inline-password"] {
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-sizing: border-box; /* ensures padding and border are included in the element's total width and height */
  margin-bottom: 3%;
}

input[type="checkbox"] {
    /* styling for larger checkboxes */
    width: 24px; /* Double the default size */
    height: 24px; /* Double the default size */
    cursor: pointer;
}

#password {
  display: block;
  width: 100%; /* same width as the email input */
}

#first-name-label,
#last-name-label,
#phone-label,
#password-label {
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* =====  Inline (same row) input label and text box alignment ===== */

.inline-form-group {
  display: flex; /* Make form group a flex container */
  margin-bottom: 5px; /* Add space between form groups */
}

.inline-form-group label {
  flex: 1; /* Take up 1 part of the space */
  margin-right: 10px; /* Add space between label and input */
  white-space: nowrap; /* Prevent label text from wrapping */
}

.inline-form-group input {
  flex: 2; /* Take up 2 parts of the space */
  display: block;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  height: 45px; /* Ensuring consistent height for all inputs */
}

#inline-email-label,
#inline-first-name-label,
#inline-last-name-label,
#inline-phone-label,
#inline-password-label {
  text-align: right;
  display: block;
  margin-top: 7px;
}


/* =====  Flex containers are used in centered forms and alerts ===== */
/* e.g., login, logout, error, visualizations) */

.flex-container-email,
.flex-container-register,
.flex-container-login,
.flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-container-email {
  height: 590px;
  margin-top: 150px;
}

.flex-container-register {
  height: 590px;
  margin-top: 150px;
}

.flex-container-login {
  height: 640px;
}

.flex-container {
  height: 600px;
}

.flex-container-email > div,
.flex-container-register > div,
.flex-container-login > div,
.flex-container > div {
  background-color: #323238;
  border: 1px solid #404040;
  border-radius: 16px;
  width: 400px;
}

.flex-container-email > div {
  height: 500px;
  width: 520px;
}

.flex-container-register > div {
  height: 680px;
  padding-bottom: 5px; /* Add padding to the bottom */
  width: 550px;
}

.flex-container-login > div {
  height: 580px;
}

.flex-container > div {
  height: 400px;
}

.error-text-box,
.email-text-box,
.reset-password-text-box,
.register-text-box,
.login-text-box,
.logout-text-box {
  text-align: center;
}

.register-text-box {
  padding-bottom: 1px;
}

.register-button,
.login-button,
.logout-button,
.send-reset-button{
  color: black;
  display: block; /* Ensure it takes full width of its container */
  margin: 0 auto 5%; /* Center the button horizontally and add bottom margin */
  font-size: 1.3em;
}

.register-button a,
.login-button,
.logout-button {
  margin-top: 5%;
}

.send-reset-button{
  margin-top: 15%;
}

.register-button a:hover,
.login-button a:hover,
.logout-button a:hover {
  background-color: #D86E1E;
  border: #D99E36 1px solid; 
}

.login-button a,
.logout-button a {
  font-family: "Roboto Mono", mono, sans;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #E5A028;
  padding: 15px 25px 15px 25px;
  border: #F0BE67 1px solid;
  border-radius: 6px;
}

.login-button{
  margin-top: 5%;
}

.logout-button{
  margin-top: 25%;
}


/* =====  Checkbox label alignment (Register & Account-Settings) ===== */
.checkbox-container {
  display: flex; /* Ensures the label and checkbox are on the same line */
  align-items: center; /* Vertically centers the items */
  margin-bottom: 8px; /* Adds space between the checkboxes */
}
.checkbox-container label {
  margin-left: 5px; /* Adds space between the checkbox and the label */
  white-space: nowrap; /* Prevents the label text from wrapping */
}
/* Adjust the checkbox container to ensure it fits within the form */
.checkbox-container:last-of-type {
  margin-bottom: 1px; /* Remove any bottom margin from the last checkbox */
}


 /* ==========     Account Settings page      ========== */
.account-settings-text-box {
    text-align: center;
    padding: 20px;
    background-color: #323238; /* Ensure the background color matches */
    border: 1px solid #404040;
    border-radius: 16px;
    width: 400px; /* Adjust the width as needed */
    margin-top: 300px; /* Add some margin at the top to create space above */
    margin-bottom: 120px; /* Add some margin at the bottom to extend the box */
    min-height: 800px; /* Adjust this value as needed */
}

.account-settings-text-box input[type="text"] {
    margin-bottom: 1px; /* Reduced margin-bottom */
}

/* checkbox size adjustments */
#is_data_retention_requested,
#has_two_factor_auth {
    width: 24px; /* Larger width */
    height: 24px; /* Larger height */
    cursor: pointer;
}


/* ================================================== */
/* RESPONSIVE WEB DESIGN (RWD) MOBILE WEB ADJUSTMENTS */
/* ================================================== */

@media (max-width: 768px) {
    .navigation ul {
        flex-direction: column;
    }

    .flex-container-register {
        margin-top: 10px; /* Reduced margin-top for mobile */
        height: auto; /* Allow auto height to prevent cutoff */
    }

    .flex-container-register > div {
        width: 100%; /* Ensure full width on mobile */
        padding: 15px; /* Provide sufficient padding */
        margin: 0 10px; /* Add margin for spacing */
    }

    .inline-form-group {
        flex-direction: column; /* Stack labels and inputs vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .inline-form-group label {
        margin-right: 0; /* Remove right margin */
        margin-bottom: 5px; /* Add bottom margin */
        text-align: left; /* Align text to the left */
    }

    .register-button {
        /* width: 100%; */ /* Full width button */
        margin: 20px 0; /* Margin for top and bottom */
    }

    /* Set all profile input fields to full width on mobile devices */
    input[type="inline-text"], 
    input[type="inline-email"], 
    input[type="inline-password"] {
        width: 100%;  /* Ensures all fields have the same width */
    }

    /* helps ensure the header is not cut off */
    body {
        padding-top: 80px;
    }

    .account-settings-text-box {
        width: 90%; /* Ensure full width on mobile */
        margin-top: 50px; /* Adjust margin to create space */
        margin-bottom: 100px; /* Adjust bottom margin to ensure proper space */
        padding: 50px;
        min-height: 600; /* Let the container adjust height based on content */
    }

}

