@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html,
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: radial-gradient(circle at top, #020617 0%, #020617 55%, #000 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* ===== APP FRAME (similar to home) ===== */
.login-app {
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #f9fafb;
  position: relative;
  overflow: hidden;
}

/* ===== STATUS BAR (copy style from home) ===== */
.status-bar {
  height: 32px;
  padding: 6px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #e5e7eb;
  opacity: 0.9;
}

.status-left {
  font-weight: 600;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-icon {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  border: 1.4px solid #e5e7eb;
  position: relative;
}

.sb-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: #e5e7eb;
}

/* ===== MAIN SECTION ===== */
.login-main {
  flex: 1;
  position: relative;
  padding: 16px 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background glows */
.bg-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}

.bg-orbit-1 {
  width: 260px;
  height: 260px;
  background: #22c55e;
  top: -60px;
  left: -80px;
}

.bg-orbit-2 {
  width: 260px;
  height: 260px;
  background: #38bdf8;
  bottom: -80px;
  right: -60px;
}

.bg-orbit-3 {
  width: 220px;
  height: 220px;
  background: #f97316;
  top: 25%;
  right: -80px;
}

/* ===== LOGIN CARD ===== */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 24px 20px 22px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #020617 0%, #020617 60%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(59, 130, 246, 0.25);
  animation: cardIn 0.6s ease-out;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top brand row */
.login-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #f97316, #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.8);
  overflow: hidden;
}

.logo-circle img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.brand-subtitle {
  font-size: 13px;
  color: #9ca3af;
}

.login-tagline {
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #9ca3af;
}

/* ===== FORM ===== */
.login-form {
  width: 100%;
}

.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

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

.input-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #64748b;
}

.input-field {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 12px;
  border: 1.6px solid rgba(30, 64, 175, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

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

.input-field:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

/* Toggle password */
.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #e5e7eb;
}

.eye-icon {
  width: 18px;
  height: 18px;
}

/* Remember + forgot */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.8px solid #334155;
  margin-right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: #f9fafb;
  font-size: 12px;
  font-weight: 700;
}

.checkbox-text {
  color: #9ca3af;
}

.forgot-link {
  font-size: 13px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  color: #0ea5e9;
}

/* ===== Login button ===== */
.login-button {
  width: 100%;
  margin-top: 4px;
  padding: 11px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #10b981, #14b8a6);
  color: #020617;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 10px 20px rgba(34, 197, 94, 0.5),
    0 4px 14px rgba(20, 184, 166, 0.5);
  transition: all 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(34, 197, 94, 0.6),
    0 6px 18px rgba(20, 184, 166, 0.6);
}

.login-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 5px 12px rgba(34, 197, 94, 0.4),
    0 3px 10px rgba(20, 184, 166, 0.4);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.button-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.login-button:hover .button-icon {
  transform: translateX(3px);
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 13px;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Helper text */
.helper-text {
  margin-top: 16px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

/* ===== FOOTER ===== */
.login-footer {
  padding-bottom: 10px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-main {
    padding: 12px 16px 26px;
  }

  .login-card {
    padding: 20px 18px 20px;
  }
}
