@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,400;0,700;0,900;1,100;1,400;1,700;1,900&display=swap');

:root {
  --var-sans-serif: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

html,
body {
  font-family: var(--var-sans-serif);
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  background-color: #0f172a;
  color: #f9fafb;
}

main {
  display: flex;
  height: 100%;
  width: 100%;
  padding: 1rem .25rem;
}

h2 {
  text-align: center;
  line-height: 1.25;
  padding: 0 .5rem;
  margin-top: 0;
}

legend {
  text-align: center;
  font-size: 1.125rem;
  margin: .25rem;
}

p:not(last-child) {
  margin-top: 0;
  margin-bottom: 1rem;
}
p:last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.flex {
  display: flex;
}

.wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #0006;
  padding: 1rem;
}

@media (min-width: 640px) {
  .wrapper {
    margin: auto;
    max-width: 24rem;
    border-radius: 0.5rem;
  }
}

.wrapper header {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 640px) {
  .wrapper header {
    margin: auto;
  }
}

.wrapper header img.logo {
  width: 100%;
  height: 4rem;
}

fieldset {
  border: 1px solid #fff3
}

#message {
  margin: auto;
  display: none;
  width: 100%;
  flex-direction: column;
  justify-content: start;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

#message a {
  color: #3e83f6;
}

.error {
  color: #ff4646;
  border: 1px solid #ff464633;
  background-color: #ff000022;
}

.success {
  color: #0fc552;
  border: 1px solid #16a34a33;
  background-color: #16a34a22;
}

.warning {
  color: #ffea00;
  border: 1px solid #ffea0033;
  background-color: #ffea0022;
}

section.login-container {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

form#login-form {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#update-form, #email-select {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}

.email-list ul {
  margin-bottom: 0;
}

.email-option {
  font-size: 14px;
  font-family: monospace;
}

input:not([type='radio']) {
  display: block;
  width: 100%;
  padding: 0.8rem 0.25rem;
  border: 1px solid #000;
  border-radius: 0.25rem;
  background-color: #0006;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  outline: 0;
  box-sizing: border-box;
  text-indent: 0.25rem;
  margin-top: 0.5rem;
}

input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

input[type='password'], input[type='email'] {
  font-family: monospace;
}

input[type=radio] {
  margin-right: 0.5rem;
}

button {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0.8rem 0.25rem;
  border-radius: 0.25rem;
  background-color: #3b82f6;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-indent: 0;
  letter-spacing: 0.025rem;
  margin-top: .5rem;
  border: 1px solid #2563eb;
  cursor: pointer;
}

button:hover {
  background-color: #2563eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Style for the disabled submit button */
button[type="submit"]:disabled {
  background-color: #ccc; /* Change background color */
  cursor: not-allowed; /* Change cursor to indicate disabled state */
  opacity: 0.6; /* Reduce opacity */
}

.forgot-password a {
  color: #3b82f6;
  text-decoration: none;
}

.forgot-password a:hover,
.forgot-password a:focus {
  color: #2563eb;
  text-decoration: underline;
}

footer {
  margin-top: auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  font-size: 0.75rem;
}