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

body {
  background: #090700;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 0;
}

.page-footer {
  margin-top: auto;
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.login-logo-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-header img {
  height: 91px;
  width: auto;
  max-width: 100%;
}

.login-container {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 11px;
  padding: 29px 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.3;
}

.login-form {
  width: 100%;
}

.error-message {
  background: #FEE;
  border: 1px solid #FCC;
  color: #C33;
  padding: 11px 14px;
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.error-message:empty {
  display: none !important;
}

.error-message:not(:empty) {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  height: 36px;
  padding: 0 13px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #FFFCF5;
  border: 1px solid #E0DCD0;
  border-radius: 7px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #F4AE00;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(244, 174, 0, 0.1);
}

.form-input:valid {
  border-color: #E0DCD0;
}

.form-input:valid:focus {
  border-color: #F4AE00;
}

.form-input::placeholder {
  color: #999;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #F4AE00;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  cursor: pointer;
  accent-color: #F4AE00;
}

.checkbox-text {
  color: #666;
  font-size: 13px;
}

.forgot-link {
  color: #F4AE00;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.forgot-link:hover {
  opacity: 0.8;
}

.btn-submit {
  width: 100%;
  height: 36px;
  background: #F4AE00;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}

.btn-submit:hover {
  background: #E5A100;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 174, 0, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.login-footer a {
  color: #F4AE00;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

.page-footer {
  margin-top: auto;
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 32px 24px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  .form-input,
  .btn-submit {
    height: 44px;
  }
}