/* Root variables for color scheme */
:root {
    --blueColor: rgb(50, 77, 199);
    --yellowColor: rgb(254, 219, 2);
    --correctColor: 72, 207, 92;
    --incorrectColor: 239, 83, 80;
    --darkColor: rgb(32, 32, 32);
}

/* Basic Reset / Box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
}

/* Use Noto Sans for the entire page */
body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--darkColor);
    position: relative;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.passwordElement {
    flex-direction: column;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.passwordElement>label {
    font-size: 0.7rem;
    color: rgb(var(--correctColor));
    margin-bottom: 0.1rem;
    display: block;
}

.passwordElement>label.invalid {
    color: rgb(var(--incorrectColor));
}

.passwordElement>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.passwordElement>div>input {
    flex-grow: 1;
    padding: 0.6rem;
}

.passwordElement>div>input.invalid {
    border: 2px solid rgb(var(--incorrectColor));
}

.passwordElement>div>button {
    padding: 0.2rem;
    border: 0;
    color: var(--darkColor);
    border-radius: 0.3rem;
    font-size: 1.5rem;
    background-color: transparent;
    flex-grow: 0;
    margin-left: 0.3rem;
    cursor: pointer;
}

/* Modern background, overlay style */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient, wave, or layered background */
    background: linear-gradient(135deg, #f4f4f4, #e0e0e0);
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

/* Centered container with drop-shadow, etc. */
.login-container {
    background: #fff;
    width: 500px;
    max-width: 90%;
    padding: 1.3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin: 3rem auto;
    box-sizing: border-box;
}

.login-container>hr {
    width: 90%;
    margin: 1.5rem auto;
    margin-top: 2rem;
    border: 1px solid rgb(200, 200, 200);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1rem;
}

.header h1 {
    font-size: 2.5rem;
    color: var(--blueColor);
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgb(190, 190, 190);
    opacity: 0.7;
    line-height: 1.2;
}

/* Toggle Buttons */
.toggle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Use the yellow for more emphasis on toggles or actions that stand out */
.toggle-buttons button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--darkColor);
    transition: color 0.3s ease;
}

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

.toggle-buttons button.active {
    color: var(--blueColor);
    border-bottom: 3px solid var(--blueColor);
}

/* Form Container */
.form-container {
    padding: 1rem 0;
    padding-top: 0;
}

/* Form Container Titles */
.form-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--darkColor);
    font-weight: 700;
}

/* Labels & Inputs */
.form-container>label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-weight: 600;
    color: var(--darkColor);
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--darkColor);
}

.form-container input.passwordInput {
    width: auto;
    margin-bottom: 0;
}

/* Action Button (Submit) */
.action-button {
    width: 100%;
    background: var(--yellowColor);
    color: var(--darkColor);
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.action-button:hover {
    filter: brightness(0.9);
}

/* Google Login Container */
.google-login {
    text-align: center;
    margin-top: 1rem;
}

/* Google Login Button using Font Awesome */
.google-button {
    background: #fff;
    color: var(--darkColor);
    border: 2px solid #db4437;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.google-button i {
    margin-right: 0.5rem;
    color: #db4437;
    /* Google's brand color for the icon */
    font-size: 1.2rem;
}

.google-btn-text {
    font-size: 0.95rem;
}

.google-button:hover {
    background: #db4437;
    color: #fff;
}

p.guest {
    margin: 1rem;
    text-align: center;
}

p.forgotPasswordText {
    margin: 0.5rem;
    text-align: center;
}

u {
    cursor: pointer;
}

a:not(.default) {
    color: var(--darkColor);
}

h5 {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    color: var(--darkColor);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h6 {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    color: var(--darkColor);
    font-size: 1rem;
    font-weight: 500;
}

#emailConsentForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#emailConsentForm > span {
    color: rgb(80, 80, 80);
    text-decoration: underline;
    padding: 0.5rem;
    padding-bottom: 0;
    cursor: pointer;
}

#unsubscribeFormElement > div {
    margin-bottom: 1rem;
}

#unsubscribeFormElement > div > div {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

#unsubscribeFormElement > div > div > h3 {
    display: inline-block;
}

#unsubscribeFormElement > div > div > span {
    display: block;
}

#unsubscribeFormElement > span {
    color: rgb(80, 80, 80);
    text-decoration: underline;
    margin: 0.5rem;
    display: flex;
    margin-bottom: 0;
    cursor: pointer;
    justify-content: center;
}

.profileSwitchElement {
    height: 1.5rem;
    width: 3.5rem;
    border-radius: 1rem;
    padding: 0.25rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(80, 80, 80);
    cursor: pointer;
}

.profileSwitchElement > .track {
    height: 1rem;
    width: 3rem;
    border-radius: 1rem;
    background-color: rgb(40, 40, 40);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.profileSwitchElement > .track > .button {
    height: 1rem;
    width: 1rem;
    border-radius: 1rem;
    background-color: var(--blueColor);
    transition: transform 0.2s ease;
    transform: translateX(-1rem);
    pointer-events: none;
    box-sizing: content-box;
    border: 2px solid rgb(80, 80, 80);
}

.profileSwitchElement.active > .track {
    background-color: rgb(var(--correctColor), 0.8);
}

.profileSwitchElement.active > .track > .button {
    transform: translateX(1rem);
}

/* Hidden class for toggling between forms */
.hidden {
    display: none !important;
}