/* LOGIN PAGE STYLES */

.login-body { margin: 0; padding: 0; min-height: 100vh; }

.login-page {
  display: flex;
  min-height: 100vh;
}

/* LEFT */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 60%, #1e4fc2 100%);
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  color: white;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.login-left .logo-main { color: white; }

.login-left-content {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-left-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.login-left-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 380px;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.login-features li i {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.bg-circle-1, .bg-circle-2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.bg-circle-1 { width: 400px; height: 400px; bottom: -100px; right: -100px; }
.bg-circle-2 { width: 200px; height: 200px; top: 50px; right: 50px; }

/* RIGHT */
.login-right {
  flex: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.login-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
}

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

.login-card-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.login-card-header p {
  font-size: 14px;
  color: var(--text-light);
}

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-wrap > i {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-size: 15px;
  pointer-events: none;
}

.field-wrap input,
.field-wrap select {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  transition: var(--transition);
  background: var(--bg-light);
}

.field-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field-wrap input:focus,
.field-wrap select:focus {
  outline: none;
  border-color: var(--blue);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(26,60,143,0.1);
}

.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
  transition: var(--transition);
}

.toggle-pw:hover { color: var(--blue); }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.checkbox-label input { accent-color: var(--blue); }

.forgot-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

.forgot-link:hover { color: var(--orange); }

.btn-login-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-login-submit:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,60,143,0.35);
}

/* DEMO ACCOUNTS */
.demo-accounts {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
}

.demo-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
}

.demo-btn:hover {
  border-color: var(--blue);
  background: rgba(26,60,143,0.04);
  transform: translateY(-1px);
}

.demo-avatar {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-avatar.orange { background: var(--orange); }
.demo-avatar.teal { background: var(--teal); }
.demo-avatar.purple { background: var(--purple); }

.demo-btn strong { display: block; font-size: 12px; color: var(--dark); }
.demo-btn span { font-size: 11px; color: var(--text-light); }

.back-home {
  text-align: center;
}

.back-home a {
  font-size: 13px;
  color: var(--text-light);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-home a:hover { color: var(--blue); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { padding: 24px; }
  .demo-grid { grid-template-columns: 1fr; }
}
