/* ============================================
   iOS 风格后台登录页 - 极简设计
   ============================================ */

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F2F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* 容器 - 垂直水平居中 */
.ios-login-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 0;
}

/* 卡片 */
.ios-login-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  padding: 40px 32px 32px;
}

/* 头部 - Logo & Title */
.ios-login-header {
  text-align: center;
  margin-bottom: 36px;
}

.ios-login-logo {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.ios-login-title {
  font-size: 26px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ios-login-subtitle {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
}

/* 表单 */
.ios-login-form {
  width: 100%;
}

/* 输入框组 */
.ios-input-group {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  background: #F2F2F7;
  border-radius: 12px;
  height: 48px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ios-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.ios-input-icon {
  flex-shrink: 0;
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #1C1C1E;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-right: 12px;
}

.ios-input::placeholder {
  color: #8E8E93;
  font-weight: 400;
}

.ios-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #F2F2F7 inset !important;
  -webkit-text-fill-color: #1C1C1E !important;
}

/* 复选框 - iOS 风格 */
.ios-checkbox-group {
  margin-bottom: 24px;
  margin-top: 4px;
}

.ios-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 0;
}

.ios-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-checkbox-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #C7C7CC;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.ios-checkbox-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.ios-checkbox input:checked + .ios-checkbox-mark {
  background: #007AFF;
  border-color: #007AFF;
}

.ios-checkbox input:checked + .ios-checkbox-mark::after {
  opacity: 1;
  transform: scale(1);
}

.ios-checkbox-label {
  font-size: 14px;
  color: #3A3A3C;
  margin-left: 10px;
  font-weight: 400;
}

/* 登录按钮 - 胶囊形状 */
.ios-btn-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: #007AFF;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 2px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ios-btn-submit:hover {
  background: #0066D6;
}

.ios-btn-submit:active {
  background: #0055B3;
  transform: scale(0.98);
}

/* 底部链接 */
.ios-login-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ios-link {
  font-size: 13px;
  color: #007AFF;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ios-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* 页脚版权 */
.ios-login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #8E8E93;
  padding: 0 16px;
  line-height: 1.6;
}

.ios-login-footer a {
  color: #8E8E93;
  text-decoration: none;
}

.ios-login-footer a:hover {
  color: #007AFF;
}

/* 响应式 - 小屏适配 */
@media screen and (max-width: 480px) {
  body {
    padding: 16px;
    align-items: flex-start;
    padding-top: 10vh;
  }

  .ios-login-container {
    min-height: auto;
    padding: 0;
  }

  .ios-login-card {
    padding: 32px 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  }

  .ios-login-title {
    font-size: 24px;
  }

  .ios-input-group {
    height: 44px;
  }

  .ios-input {
    height: 44px;
    font-size: 15px;
  }

  .ios-btn-submit {
    height: 46px;
    font-size: 15px;
  }
}