/* =============================================
   LOGIN PAGE — login.css
   ============================================= */

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

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

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

html, body {
  height: 100%;
}
/* ── Layout ── */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ── Left Panel ── */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: #ffffff;
  overflow: hidden;
}

.login-box {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

/* ── Logo ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo img {
  height: 40px;
  width: auto;
}

.login-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.login-brand-project {
  font-size: 13px;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: 0.05em;
}

.login-brand-manhattan {
  font-size: 11px;
  font-weight: 500;
  color: #99008c;
}

/* ── Title ── */
.login-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  color: #5a5a5a;
  margin-bottom: 28px;
}

/* ── Error ── */
.login-error {
  background: #fff0ef;
  border: 1px solid #f5c6c3;
  color: #c0392b;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ── Fields ── */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.login-field label {
  font-size: 13px;
  font-weight: 500;
  color: #0f0f0f;
}

.login-field input {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #0f0f0f;
  background: #ffffff;
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s ease;
  width: 100%;
}

.login-field input:focus {
  border-color: #0f0f0f;
}

.login-field input::placeholder {
  color: #a0a0a0;
  font-size: 13px;
}

/* ── Password wrap ── */
.login-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-wrap input {
  padding-right: 40px;
}

.login-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #a0a0a0;
  padding: 0;
}

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

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a5a5a;
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #0f0f0f;
}

.login-forgot {
  background: none;
  border: none;
  font-size: 13px;
  color: #0f0f0f;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: underline;
}

/* ── Sign In button ── */
.login-btn {
  width: 100%;
  padding: 12px;
  background: #0f0f0f;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 20px;
}

.login-btn:hover {
  background: #2a2a2a;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Divider ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #a0a0a0;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

/* ── Social buttons ── */
.login-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.login-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: white;
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #0f0f0f;
}

.login-social-btn:hover {
  border-color: #0f0f0f;
  background: #f5f5f5;
}

.login-social-btn img {
  width: 18px;
  height: 18px;
}

/* ── Register ── */
.login-register {
  font-size: 13px;
  color: #5a5a5a;
  text-align: center;
}

.login-register a {
  color: #0f0f0f;
  font-weight: 600;
  text-decoration: none;
}

.login-register a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.login-footer {
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
  margin-top: 24px;
}

/* ── Right Panel ── */
.login-right {
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
  margin: 16px 16px 16px 0;
  border-radius: 16px;
}
/* ── Slides ── */
.login-slides {
  position: absolute;
  inset: 0;
}

.login-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.login-slide.active {
  opacity: 1;
}

/* ── Slide overlay ── */
.login-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
  z-index: 10;
}

.login-slide-text {
  display: none;
  margin-bottom: 20px;
}

.login-slide-text.active {
  display: block;
}

.login-slide-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.login-slide-text p {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Dots ── */
.login-dots {
  display: flex;
  gap: 8px;
}

.login-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.18s ease;
}

.login-dot.active {
  background: white;
  width: 24px;
  border-radius: 999px;
}

/* ── Forgot Modal ── */
.forgot-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.forgot-overlay.open {
  display: flex;
}

.forgot-box {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.forgot-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.forgot-box p {
  font-size: 13px;
  color: #5a5a5a;
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-close-forgot {
  padding: 10px 24px;
  background: #0f0f0f;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-close-forgot:hover {
  background: #2a2a2a;
}