:root {
  --red-50: #FFF1F2;
  --red-100: #FFE4E6;
  --red-200: #FECDD3;
  --red-300: #FDA4AF;
  --red-400: #FB7185;
  --red-500: #F43F5E;
  --red-600: #E11D48;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-pink: 0 8px 24px rgba(244,63,94,0.20);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF1F2 50%, #FFE4E6 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--red-400), var(--red-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.logo-text { font-size: 20px; font-weight: 700; color: var(--gray-900); }

.header-nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  margin-left: 24px;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--red-500); }

/* Main */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.login-banner {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
}

.login-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.login-banner p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  position: relative;
}

.login-features {
  margin-top: 40px;
  position: relative;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-feature svg {
  width: 20px;
  height: 20px;
}

.login-form-container {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.login-form-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.login-form-header p {
  color: var(--gray-500);
  font-size: 14px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-verify {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-verify .form-input {
  flex: 1 1 auto;
}

.form-verify-img {
  height: 44px;
  width: 120px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--red-500);
}

.forgot-link {
  font-size: 14px;
  color: var(--red-500);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color: white;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(244,63,94,0.30);
}

.divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
  color: var(--gray-400);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.divider span {
  padding: 0 16px;
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-500);
}

.login-footer a {
  color: var(--red-500);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 16px;
  }

  .login-banner {
    display: none;
  }

  .login-form-container {
    padding: 40px 24px;
  }

  .header-nav { display: none; }

  .form-verify {
    flex-direction: column;
    align-items: stretch;
  }

  .form-verify-img {
    width: 100%;
  }
}
