/* ===== LOGIN PAGE STYLES ===== */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #F0F2F8;
  color: #1A1D2E;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
  display: flex;
  min-height: 100vh;
  background: white;
}

/* ===== LEFT SIDE - BRANDING ===== */
.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #4F6FFF 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -250px;
  right: -250px;
}

.login-brand::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -200px;
  left: -200px;
}

.brand-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 400px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.brand-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 48px;
  font-weight: 400;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0.9;
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== RIGHT SIDE - LOGIN FORM ===== */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #F0F2F8;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #E8ECF4;
}

.login-header {
  margin-bottom: 32px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1D2E;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.login-desc {
  font-size: 14px;
  color: #6B7280;
}

/* ===== FORM ELEMENTS ===== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #1A1D2E;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #9CA3AF;
  pointer-events: none;
  font-size: 16px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  border: 1px solid #E8ECF4;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
  background: white;
  color: #1A1D2E;
}

.form-input:focus {
  outline: none;
  border-color: #4F6FFF;
  box-shadow: 0 0 0 3px rgba(79, 111, 255, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: color 200ms ease;
}

.toggle-password:hover {
  color: #6B7280;
}

.eye-icon {
  font-size: 16px;
}

/* ===== CAPTCHA ===== */
.captcha-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.captcha-image {
  background: #F0F2F8;
  border: 1px solid #E8ECF4;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.captcha-image:hover {
  border-color: #4F6FFF;
  background: #EEF1FF;
}

.captcha-image img {
  display: block;
  border-radius: 8px;
}

/* ===== FORM OPTIONS ===== */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-mark {
  width: 16px;
  height: 16px;
  border: 2px solid #E8ECF4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-mark {
  background: #4F6FFF;
  border-color: #4F6FFF;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 2px;
}

.checkbox-label {
  color: #6B7280;
}

.forgot-link {
  color: #4F6FFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.forgot-link:hover {
  color: #3451DB;
  text-decoration: underline;
}

/* ===== LOGIN BUTTON ===== */
.btn-login {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #4F6FFF 0%, #7C3AED 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 12px rgba(79, 111, 255, 0.35);
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 111, 255, 0.4);
}

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

.btn-arrow {
  font-size: 16px;
  transition: transform 200ms ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== LOGIN FOOTER ===== */
.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }

  .login-brand {
    flex: none;
    padding: 60px 40px;
  }

  .brand-title {
    font-size: 28px;
  }

  .login-form-section {
    padding: 40px 20px;
  }

  .login-card {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .login-brand {
    padding: 40px 24px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 16px;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-subtitle {
    margin-bottom: 32px;
  }

  .brand-features {
    gap: 12px;
  }

  .login-card {
    padding: 24px 20px;
  }

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