/* ============================================
   LOGIN PAGE — Split-Screen Layout 2026
   Purple/Orange Color Scheme
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  background: #f8f9fa;
}

/* ---- LEFT SIDE: FORM ---- */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
  min-height: 100vh;
  overflow-y: auto;
}

.login-left-inner {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Brand */
.login-brand {
  margin-bottom: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand .brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand .brand-icon i {
  font-size: 18px;
  color: #fff;
}

.login-brand h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.login-brand p {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
}

/* Error */
.login-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  text-align: center;
}

/* Form */
.login-form-group {
  margin-bottom: 18px;
}

.login-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}

.login-input-wrap input,
.login-input-wrap select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.login-input-wrap select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.login-input-wrap input:focus,
.login-input-wrap select:focus {
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.login-input-wrap input:focus~.input-icon,
.login-input-wrap select:focus~.input-icon {
  color: #7c3aed;
}

/* Password toggle */
.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}

.pwd-toggle:hover {
  color: #555;
}

/* Links */
.login-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  margin-top: -6px;
}

.login-links a {
  font-size: 12.5px;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
}

.login-links a:hover {
  color: #6d28d9;
  text-decoration: underline;
}

/* Buttons */
.login-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn-outline {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  box-sizing: border-box;
}

.login-btn-outline:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  text-decoration: none;
}

/* ---- RIGHT SIDE: HERO PANEL ---- */
.login-right {
  flex: 1;
  background: linear-gradient(135deg, #1e1035 0%, #2d1b69 35%, #4c1d95 70%, #7c2d12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Decorative floating shapes */
.login-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.login-right::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Floating card on right side */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-card-row:last-child {
  margin-bottom: 0;
}

.hero-card-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-card-dot.purple {
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.hero-card-dot.orange {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.hero-card-dot.pink {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
}

.hero-card-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.hero-card-text strong {
  color: #fff;
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* Hero text */
.hero-text {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.hero-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.hero-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  padding: 0;
}

/* Small decorative dots */
.hero-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots span.active {
  background: #fb923c;
  width: 24px;
  border-radius: 4px;
}

/* ---- REVERSED LAYOUT (for forgot password) ---- */
.login-page.reversed {
  flex-direction: row-reverse;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {

  .login-page,
  .login-page.reversed {
    flex-direction: column;
  }

  .login-right {
    display: none;
  }

  .login-left {
    min-height: 100vh;
    padding: 32px 24px;
  }
}