:root {
  --primary-color: #ff7f00;
  --primary-light: #ffa64d;
  --primary-lighter: #ffd9b3;
  --primary-dark: #e67300;
  --secondary-color: #4a4a4a;
  --light-gray: #f5f5f5;
  --border-color: #ddd;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background-color: #fff9f2; /* 更温暖的背景色 */
  color: #333;
  line-height: 1.6;
}

.auth-container {
  max-width: 480px;
  margin: 40px auto;
  padding: 20px;
}

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

.logo-header img {
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
}

.logo-header h1 {
  font-size: 24px;
  color: var(--primary-color); /* 使用橙色 */
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 127, 0, 0.2);
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(255, 127, 0, 0.15); /* 橙色阴影 */
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-lighter); /* 更明显的橙色边框 */
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.auth-card h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 22px;
  position: relative;
  padding-bottom: 10px;
}

.auth-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-light);
  border-radius: 3px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.2);
}

.validation-message {
margin-top: 5px;
font-size: 12px;
min-height: 18px;
transition: all 0.3s;
}

.validation-message.error {
color: var(--error-color);
}

.validation-message.success {
color: var(--success-color);
}

.validation-message.warning {
color: var(--warning-color);
}

.password-strength {
height: 4px;
background-color: #e0e0e0;
border-radius: 2px;
margin-top: 5px;
overflow: hidden;
}

.password-strength-bar {
height: 100%;
width: 0%;
transition: all 0.3s;
border-radius: 2px;
}

.strength-weak { background-color: var(--error-color); }
.strength-medium { background-color: var(--warning-color); }
.strength-strong { background-color: var(--success-color); }

.btn-primary {
width: 100%;
padding: 12px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
position: relative;
overflow: hidden;
}

.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255, 127, 0, 0.3);
}

.btn-primary:disabled {
background-color: #ccc;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.7rem; /* 30px/16 = 1.875rem */
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.8rem; /* 15px/16 = 0.9375rem */
  border: 0.125rem solid orange; /* 2px/16 = 0.125rem */
  border-radius: 1.875rem; /* 30px/16 = 1.875rem */
  padding: 0.1rem 0.5rem; /* 4px/16=0.25rem, 20px/16=1.25rem */
  transition: all 0.3s;
}

.auth-links a:hover {
  background-color: orange;
  color: white;
  text-decoration: none;
}

.auth-footer {
text-align: center;
color: #777;
font-size: 14px;
}

.alert {
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 14px;
position: relative;
border-left: 4px solid;
background-size: 20px 20px;
background-repeat: no-repeat;
background-position: 15px center;
padding-left: 45px;
}


.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(255, 127, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 127, 0, 0.3);
}

.alert.error {
background-color: #fef2f2;
border-left-color: var(--error-color);
color: #dc2626;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc2626' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.alert.success {
background-color: #f0fdf4;
border-left-color: var(--success-color);
color: #16a34a;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a34a' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.required::after {
content: " *";
color: var(--error-color);
}

.form-tips {
background-color: #fff7ed;
border: 1px solid #fed7aa;
border-radius: 6px;
padding: 12px;
margin-bottom: 20px;
font-size: 13px;
color: #9a3412;
}

@media (max-width: 576px) {
.auth-container {
padding: 15px;
}
.auth-card {
padding: 20px;
}
}
