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

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0f1324 0%, #1a1f3a 50%, #2d1b4e 100%);
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Left brand panel */
.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #4099ff, #6a4aff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

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

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

.brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.brand-logo {
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #fff;
  color: #4099ff;
  font-weight: 800;
  font-size: 52px;
  border-radius: 24px;
  line-height: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .brand-badge {
    width: 72px;
    height: 72px;
    font-size: 38px;
    border-radius: 18px;
  }
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 0;
}

.brand-divider {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  margin: 20px auto;
}

.brand-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 300;
}

/* Right form panel */
.login-form-panel {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.form-content {
  width: 100%;
  max-width: 370px;
}

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

.form-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.9rem;
}

/* Input groups */
.input-group {
  border-radius: 12px;
  overflow: hidden;
}

.input-group .input-group-text {
  background: #f8f9fc;
  border: 2px solid #e8ecf4;
  border-right: none;
  color: #6c757d;
  padding: 10px 14px;
  font-size: 1.1rem;
}

.input-group .form-control {
  border: 2px solid #e8ecf4;
  border-left: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fc;
}

.input-group .form-control:focus {
  box-shadow: none;
  border-color: #4099ff;
  background: #fff;
}

.input-group:focus-within .input-group-text {
  border-color: #4099ff;
  background: #fff;
}

.input-group .btn-outline-secondary {
  border: 2px solid #e8ecf4;
  border-left: none;
  background: #f8f9fc;
  color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
  background: #eef1f8;
  color: #4099ff;
}

.input-group:focus-within .btn-outline-secondary {
  border-color: #4099ff;
  background: #fff;
}

/* Checkbox and forgot link */
.form-check-input:checked {
  background-color: #4099ff;
  border-color: #4099ff;
}

.form-check-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.forgot-link {
  font-size: 0.85rem;
  color: #4099ff;
  text-decoration: none;
  font-weight: 500;
}

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

/* Login button */
.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  background: linear-gradient(135deg, #4099ff, #6a4aff);
  border: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(64, 153, 255, 0.35);
}

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

/* Form footer */
.form-footer {
  margin-top: 40px;
  text-align: center;
}

.form-footer p {
  font-size: 0.78rem;
  color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 420px;
  }

  .login-brand {
    padding: 36px 24px;
  }

  .login-brand::before,
  .login-brand::after {
    display: none;
  }

  .brand-logo img {
    width: 60px;
    height: 60px;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .login-form-panel {
    padding: 36px 24px;
  }
}
