/* ===============================
   Base styles
================================= */

:root {
  --uni_margin: 20px;
  --uniWidth: 80%;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  user-select: none;
}


/* * {
  outline: 1px solid red;
} */


/* ===============================
   Components
================================= */

.cover-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill container */
  z-index: -1; /* Behind content */
}

/* ===============================
   Responsive (≤1200px)
================================= */

#input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  row-gap: 15px; /* more vertical spacing */
}

#email_input,
#password_input,
#password_input2 {
  width: 100%;
  box-sizing: border-box; /* ensures padding is included in width */
}

#submit,
#submit_button2,
#submit_button3,
#supportButton {
  width: var(--uniWidth);
  box-sizing: border-box; /* ensures padding is included in width */
}

#email_input,
#password_input,
#password_input2 {
  height: 40px; /* slightly taller for better spacing */
  font-size: 16px;
  padding: 0 10px; /* horizontal padding */
  border-radius: var(--uniRadius);
}

#submit-container, #google-container, #apple-container {
  text-align: center;
  margin-top: 10px;
}

#submit,
#submit_button2,
#submit_button3,
#supportButton {
  height: 50px;
  font-size: 18px;
  border-radius: var(--uniRadius);
  padding: 6px;
  background-color: var(--colorClickable);
  color: var(--colorBlack);
}



#email_input::placeholder,
#password_input::placeholder,
#password_input2::placeholder {
  font-style: italic;
  color: rgba(0, 0, 0, 0.5); /* slightly fainter */
}




#flash-container {
    height: 40px; /* fixed height for flash messages */
    text-align: center;
    position: relative; /* allows messages to be positioned inside */
}

#flash-container p.forgot2 {
    position: absolute; /* message floats inside container */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
}




h1 {
  font-size: 20px;
  text-align: center;
  padding: var(--uni_margin);
}

label {
  font-size: 20px;
}

.forgot,
.forgot2 {
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
}



.input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--uniWidth);
  min-height: 85px;
}

.error-placeholder {
    min-height: 20px;       /* reserve space */
    font-size: 14px;
    color: red;
    margin-top: 4px;
    text-align: center;
}

.error-message {
    display: inline-block;  /* always occupies space even if empty */
    min-height: 20px;
}

#password_input2 {
    margin-top: 30px;
    margin-bottom: 30px;
}




/* Google login button similar size to other buttons */
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 18px;
    border-radius: var(--uniRadius);
    padding: 6px 12px;
    background-color: var(--colorClickable);
    color: var(--colorBlack);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    width: var(--uniWidth);
    box-sizing: border-box; /* ensures padding is included in width */
}

.google-login-btn:hover {
    background-color: #357ae8;
}

.google-login-btn .google-icon {
    display: inline-flex;
    margin-right: 10px;
}

.google-login-btn .google-icon svg {
    width: 24px;
    height: 24px;
}



#safariInstallInfo {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colorGrey);
}


/* Apple login button similar size to other buttons */
.apple-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 18px;
    border-radius: var(--uniRadius);
    padding: 6px 12px;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    width: var(--uniWidth);
    box-sizing: border-box;
}

.apple-login-btn:hover {
    opacity: 0.85;
}

.apple-login-btn .apple-icon {
    display: inline-flex;
    margin-right: 10px;
}

.apple-login-btn .apple-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
