.login.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0 auto;
}

h1 {
  color: black;
}

.login-section {
  background-color: #ffffff;
  border-top: 6px solid #d97706;
  color: black;
  border-radius: 14px;
  padding: 25px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.login-errors {
  border: 2px solid #b42318;
  background: #fee4e2;
  color: #7a271a;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.login-form {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.form-label {
  width: 120px;
  font-weight: 700;
  padding-top: 8px;
}

.form-field {
  flex: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.form-field-error {
  margin: 6px 0 0;
  min-height: 1.2em;
  width: 100%;
  color: #b42318;
}

.input-error input {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  min-width: 0;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;

  background: transparent;
  border: none;
  padding: 0;

  cursor: pointer;
  font-size: 1.1rem;
  color: #777;
}

.password-toggle:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-revealed .icon-eye {
  display: none;
}

.password-toggle.is-revealed .icon-eye-off {
  display: inline;
}

.form-button {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 12px;
}

.login-button {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.login-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.login-button:disabled {
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 520px) {
  .login-form {
    flex-direction: column;
    gap: 6px;
  }

  .form-label {
    width: auto;
    padding-top: 0;
  }
}
