/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #060b18;
  color: #fff;
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }

/* ==============================
   LAYOUT
============================== */
.login-page {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ==============================
   LEFT SIDE
============================== */
.login-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 60px 60px 80px;
  overflow: hidden;
}

.left-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.left-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, 0.55);
  z-index: 1;
}

.left-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

/* Dashboard image */
.dashboard-wrap {
  position: relative;
  margin-bottom: 40px;
}

.dashboard-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(26,109,255,0.25);
  position: relative;
  z-index: 2;
}

.dashboard-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(120, 180, 255, 0.6) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.dashboard-reflection {
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(26,109,255,0.3) 0%, transparent 70%);
  filter: blur(14px);
  z-index: 1;
}

.left-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.left-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ==============================
   RIGHT SIDE
============================== */
.login-right {
  width: 440px;
  min-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* ==============================
   LOGIN CARD
============================== */
.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 22, 46, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(26,109,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
}

/* Logo */
.card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.card-logo img {
  height: 36px;
  width: auto;
}

/* Title */
.login-card h1 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input-group input::placeholder { color: rgba(255,255,255,0.35); }

.input-group input:focus {
  border-color: rgba(26,109,255,0.6);
  background: rgba(26,109,255,0.06);
}

/* Sign In button */
.btn-signin {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2979ff, #1251e0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(26,109,255,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(26,109,255,0.7), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Google button */
.btn-google {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s;
}

.btn-google:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Footer links */
.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.card-footer a:hover { color: #fff; text-decoration: underline; }

.sep { opacity: 0.4; }

.invite-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  margin-top: 12px;
}

/* ==============================
   LOGIN WRAPPER (full-page centered)
============================== */
.login-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, 0.72);
  z-index: 1;
}

.login-wrapper .login-card {
  position: relative;
  z-index: 2;
}

/* Error message */
.error-msg {
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff6b6b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Login Page
══════════════════════════════════════════════ */

/* Navbar: hide links on small screens */
@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-demo { display: none; }
}

/* Login wrapper: tighter padding */
@media (max-width: 767px) {
  html, body { overflow: auto; height: auto; }

  .login-wrapper {
    padding: 60px 16px 32px;
    min-height: 100svh;
    align-items: flex-start;
  }

  .login-card {
    padding: 28px 20px 24px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
  }

  .login-card h1 { font-size: 1.1rem; }

  .input-group input { padding: 12px 14px 12px 40px; font-size: 0.88rem; }

  .btn-signin { padding: 13px; font-size: 0.95rem; }
}
