*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #495057;
}

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.login-title-container {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.login-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #2c7be5;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 16px;
  margin: 0;
  color: #6c757d;
}

.login-form,
.elegant-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background-color: #fff;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.elegant-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  color: #e5e7eb;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
  outline: none;
  caret-color: #fff;
}

.elegant-input::placeholder {
  color: #9ca3af;
}

.elegant-input:focus {
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.25);
}

.button-group {
  margin-top: 30px;
}

.elegant-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #2c7be5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elegant-button:hover:not(:disabled) {
  background-color: #1e63dd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 123, 229, 0.3);
}

.elegant-button:active:not(:disabled) {
  transform: translateY(0);
}

.elegant-button:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
  transform: none;
}

.error {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc3545;
  font-size: 13px;
}

.error.show {
  display: block;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.system-info {
  font-size: 13px;
  margin: 0 0 5px;
  color: #495057;
  font-weight: 500;
}

.security-info {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

@media (max-width: 480px) {
  .login-title {
    font-size: 28px;
  }

  .login-form,
  .elegant-card {
    padding: 30px 25px;
  }

  .login-title-container {
    margin-bottom: 28px;
  }
}
