/* Container style - shared for all pages */
.app-container {
  max-width: 900px;   /* reasonable width */
  margin: 0 auto;  /* center horizontally with vertical spacing */
  box-sizing: border-box;
  font-family: inherit; /* inherit from theme */
  color: var(--wp--preset--color--foreground, #222);
}

#login-app {
  max-width: 300px;   /* narrower for login */
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

select {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}

/* Label/input styling */
label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #0073aa;
}

/* Button styles */
button {
  display: block;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  background: #0073aa; 
  border: 1px solid #0073aa; 
  color: #fff;
}

.back-btn {
  margin-bottom: 2rem;
  padding: 0.4rem 2rem;
}

button:hover { 
    background: #005f8d; 
}

button:disabled {
  background: #aaa;
  border-color: #aaa;
  cursor: not-allowed;
}

/* Password field wrapper */
.password-wrapper {
  position: relative;
}

/* Eye toggle button */
.password-toggle {
  position: absolute;
  right: 0rem;
  padding: 0 0.5rem;
  height: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  color: #666;
}

.password-toggle:hover {
  color: #0073aa;
  border: 1px solid #0073aa;
  background-color: transparent !important;
}

/* SVG sizing */
.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Remember me */
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.remember-me label {
  margin: 0;
}

/* Forgot password link */
.forgot-password {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login button sizing */
.login-actions button {
  min-width: 120px;
}

/* Error message */
.message.error {
  color: #cc0000;
  font-weight: 600;
  font-size: 0.9rem;
}





