/* login-widget.css */

.login-body {
  font-family: Cambria, Georgia, serif, sans-serif;
}
.login-body a {
  color: #000000;
  padding: 2px 4px;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.login-body a:hover {
  background-color: #FFD700;
  color: #000000;
  font-weight: bold;
  font-size: 1.05em;
}
.login-body a:focus {
  outline: 3px solid #2B70BB;
  outline-offset: 2px;
  background-color: #FFD700;
  font-weight: bold;
  font-size: 1.05em;
}
.login-body a:visited {
  color: #000000;
}
.login-body a:active {
  color: #000000;
}
.title {
  text-align: center;
}
/* Form container */
.login-form-container,
.verify-form-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Form input fields */
.login-input {
  width: 100%;
  margin: 0;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.login-input.input-error {
  border-color: #dc3545;
}

.login-input.input-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Submit button */
.login-button {
  width: 100%;
  padding: 10px;
  background-color: #0C1C35;
  color: white;
  border: 2px solid #0C1C35;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.login-button:hover {
  background-color: #2B70BB;
  border-color: #2B70BB;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(43, 112, 187, 0.3);
}

.login-button:focus {
  outline: none;
  border: 2px solid #2B70BB;
  background-color: #02508E;
  box-shadow: 0 0 0 1px #000000;
}

.login-button:active {
  background-color: #02508E;
  border-color: #02508E;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(2, 80, 142, 0.3);
}

.resend {
  margin-top: 10px !important;
}

/* Field-level error message (below input) */
.field-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.3;
}

.field-error:empty {
  display: none;
}

/* General error message */
#login-error,
#verify-error {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

#login-error:empty,
#verify-error:empty {
  display: none;
}

/* Legacy error class for backward compatibility */
.login-error {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
}
.login-links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.login-links a {
  color: #000000;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.login-links a:focus {
  outline: 3px solid #2B70BB;
  outline-offset: 2px;
  background-color: #FFD700;
  font-weight: bold;
}

/* Required field asterisk */
.required-star {
  color: #dc3545;
  font-weight: bold;
  margin-left: 2px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #0066ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
