/* ==========================================
   KRESTAPAY LOGIN PAGE CSS
========================================== */

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #EA8534 0%, #c0392b 50%, #A0111A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Animated background orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  top: -150px; left: -150px;
}
body::after {
  width: 400px; height: 400px;
  background: rgba(0,0,0,0.08);
  bottom: -100px; right: -100px;
}

/* ==========================================
   MAIN CARD
========================================== */

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

/* ==========================================
   LEFT SIDE
========================================== */

.login-left {
  background: rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.15);
}

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

.login-brand img {
  height: 64px;
  width: auto;
  filter: brightness(88);
  margin-bottom: 16px;
}

.login-brand h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.login-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  line-height: 1.6;
}

/* Illustration area */
.login-illustration {
  width: 100%;
  max-width: 280px;
}

.login-illustration svg {
  width: 100%;
  height: auto;
}

/* Feature badges */
.login-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}

.login-feature-item i {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  width: 20px;
  flex-shrink: 0;
}

/* ==========================================
   RIGHT SIDE
========================================== */

.login-right {
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 45px;
}

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

.login-form-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1px;
}

.login-form-header p {
  color: #6B7280;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ==========================================
   FORM ELEMENTS
========================================== */

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 0.95rem;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #F9FAFB;
  transition: all 0.3s ease;
  outline: none;
}

.login-input-wrap input:focus {
  border-color: #EA8534;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(234,133,52,0.10);
}

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

/* Toggle password icon */
.login-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 0.95rem;
  padding: 4px;
  transition: color 0.2s;
}
.login-eye-btn:hover { color: #EA8534; }

/* Remember me & Forgot */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #374151;
  font-weight: 500;
  user-select: none;
}

.login-remember input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #EA8534;
  cursor: pointer;
}

.login-forgot {
  font-size: 0.88rem;
  font-weight: 600;
  color: #EA8534;
  text-decoration: none;
  transition: color 0.2s;
}
.login-forgot:hover { color: #A0111A; }

/* Submit button */
.login-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #EA8534, #A0111A);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(234,133,52,0.30);
}

.login-btn:hover {
  background: linear-gradient(135deg, #A0111A, #EA8534);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(160,17,26,0.35);
}

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

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #9CA3AF;
  font-size: 0.82rem;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

/* Register link */
.login-register-link {
  text-align: center;
  font-size: 0.9rem;
  color: #6B7280;
}

.login-register-link a {
  color: #EA8534;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.login-register-link a:hover { color: #A0111A; }

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 460px;
    min-height: auto;
  }
  .login-left { display: none; }
  .login-right { padding: 40px 28px; }
  .login-form-header h1 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  body { padding: 16px; }
  .login-right { padding: 32px 20px; }
  .login-form-header h1 { font-size: 1.5rem; }
}
