@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ecf0f1;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Confirm email messages bar */
.confirm-email-messages {
  text-align: center;
  padding: 12px 16px;
  max-width: 800px;
  margin: 16px auto 0;
}

.message-info {
  color: #31708f;
  background-color: #d9edf7;
  border: 1px solid #bce8f1;
  padding: 12px 16px;
  border-radius: 4px;
}

.message-success {
  color: #3c763d;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  padding: 12px 16px;
  border-radius: 4px;
}

.message-error {
  color: #a94442;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 12px 16px;
  border-radius: 4px;
}

/* Main layout */
.container {
  width: 100%;
  padding: 0 16px;
}

.flex-container {
  display: flex;
  padding-top: 15rem;
  width: 100%;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

@media all and (min-width: 1024px) {
  .flex-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Login section */
.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card */
.card {
  width: 320px;
  margin-bottom: 2em;
  background: #ffffff;
  -webkit-box-shadow: 0px 5px 40px 7px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 5px 40px 7px rgba(0,0,0,0.15);
  box-shadow: 0px 5px 40px 7px rgba(0,0,0,0.15);
  border-radius: 4px;
}

.form-content {
  padding: 24px 32px;
}

.login-title {
  font-weight: bold;
  padding-top: 12px;
  padding-bottom: 16px;
}

/* Error message */
.error {
  color: #a94442;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Form fields */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  color: #BDBDBD;
  margin-bottom: 6px;
  font-size: 14px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-color: #3F51B5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.15);
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  opacity: 0.6;
}

.password-toggle:hover {
  opacity: 1;
}

/* Action buttons */
.actions {
  padding-top: 12px;
  padding-bottom: 16px;
}

.login-button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #3F51B5;
  color: #ffffff;
  font-size: 14px;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  font-weight: normal;
  box-shadow: none;
  transition: opacity 0.2s;
}

.login-button:hover {
  opacity: 0.9;
}

.resend-email-confirmation {
  margin-top: 10px;
  background-color: #4caf50;
}

.resend-email-confirmation:hover {
  background-color: #388e3c;
}

/* Links below card */
.user-management-links {
  margin-top: 15px;
  text-align: center;
}

.link-button {
  color: #3F51B5;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

/* Signup section */
.signup-section {
  width: 320px;
  padding: 0 16px;
  margin-top: 2em;
}

@media all and (min-width: 1024px) {
  .signup-section {
    margin-top: 0;
    margin-left: 48px;
  }
}

.signup-content {
  padding-bottom: 16px;
}

.signup-question {
  line-height: 1.6;
  color: #BDBDBD;
  padding-bottom: 16px;
}

.register-button {
  color: #3F51B5;
  background: none;
  border: 2px solid #3F51B5;
  border-radius: 10px;
}

.register-button:hover {
  background: rgba(63, 81, 181, 0.05);
  opacity: 1;
}
