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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #0f121b;
  color: #fff;
  min-height: 100vh;
}

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Left side styling */
.login-left {
  flex: 1;
  background: #0f121b;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

/* Graph background elements */
.login-left::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400'%3E%3Cpath d='M0,300 L150,200 L300,350 L500,150 L650,250 L800,100 L1000,200' fill='none' stroke='%231e293b' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0,350 L150,250 L300,400 L500,200 L650,300 L800,150 L1000,250' fill='none' stroke='%231e293b' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
  background-size: cover;
  opacity: 0.6;
  z-index: 0;
}

.login-left::after {
  display: none; /* Hide old radial gradient */
}

.left-content {
  position: relative;
  z-index: 1;
  margin-top: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 8px;
  padding: 25px 30px;
  min-width: 180px;
  backdrop-filter: blur(10px);
}

.feature-card .fc-title {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.feature-card .fc-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.left-footer {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: right;
}

/* Right side styling */
.login-right {
  width: 480px;
  background: #161923;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 2;
  border-left: 1px solid #232736;
}

.login-box {
  width: 100%;
  max-width: 360px;
}

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

.login-logo {
  width: 60px;
  height: 60px;
  background-image: url('/assets/logo.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.login-box h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: bold;
}

.login-desc {
  color: #9ca3af;
  margin-bottom: 30px;
  font-size: 0.85rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

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

.input-icon-wrapper .icon {
  position: absolute;
  left: 15px;
  color: #6b7280;
  font-size: 1.1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #1e293b;
  color: #fff;
}

.form-group input::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3b82f6;
  background-color: #1a1e29;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #2563eb;
}

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

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }
  .login-left {
    padding: 30px;
    flex: none;
    height: auto;
    min-height: 30vh;
  }
  .left-content {
    margin-top: 0;
    text-align: center;
  }
  .left-content h1 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .feature-card {
    padding: 10px;
  }
  .fc-title {
    font-size: 0.8rem;
  }
  .fc-value {
    font-size: 1.1rem;
  }
  .login-right {
    width: 100%;
    flex: 1;
    align-items: flex-start;
    padding: 30px 20px;
    background: #141824;
  }
  .login-box {
    padding: 30px 20px;
    box-shadow: none;
    background: transparent;
  }
}
