/* =====================================================
   RESET
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

/* =====================================================
   THEME
===================================================== */
body {
  height: 100vh;
  background: #f3f5ff;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #020617;
  color: #e5e7eb;
}

/* =====================================================
   DARK MODE TOGGLE
===================================================== */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #0a4dff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 20;
}

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

/* =====================================================
   LEFT PANEL
===================================================== */
.info-panel {
  flex: 1;
  background: linear-gradient(135deg, #e3f2d8, #c7e8b6);
  padding: 60px;
}

.info-panel h1 {
  font-size: 44px;
  margin-bottom: 40px;
  color: #0f3d1f;
}

.info-panel span {
  color: #0a4dff;
}

.info-panel ul {
  list-style: none;
}

.info-panel li {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
  animation: floatIn 0.6s ease both;
}

.info-panel i {
  font-size: 22px;
}

.info-panel strong {
  display: block;
  font-size: 18px;
  color: #0f3d1f;
}

.info-panel li span {
  font-size: 14px;
  color: #2f5f3f;
}

/* =====================================================
   RIGHT PANEL
===================================================== */
.form-panel {
  flex: 1;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

body.dark .form-panel {
  background: #020617;
}

/* =====================================================
   3D CARD
===================================================== */
.card-3d {
  width: 420px;
  height: 560px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
}

/* STATES */
.card-3d.state-login   { transform: rotateY(0deg); }
.card-3d.state-forgot  { transform: rotateY(180deg); }
.card-3d.state-register{ transform: rotateY(-180deg); }

/* =====================================================
   CARD FACE
===================================================== */
.card-face {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 16px;
  padding: 40px;
  backface-visibility: hidden;
 box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);

  background: transparent;
  flex-direction: column;
  justify-content: center;
}

body.dark .card-face {
  background: #020617;
}

/* FACE ROTATIONS */
.login-face    { transform: rotateY(0deg); }
.forgot-face   { transform: rotateY(180deg); }
.register-face { transform: rotateY(-180deg); }

/* =====================================================
   LOGO + TEXT
===================================================== */
.logo img {
  width: 120px;
  margin-bottom: 18px;
}

h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 28px;
}
/* TOP LEFT BRAND */
.login-brand {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 1000;
}

.login-brand span {
  font-size: 20px;
  font-weight: 800;      /* 🔥 BOLD */
  color: #000000;        /* 🔥 BLACK */
  letter-spacing: 0.5px;
}
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* desktop default */
  padding: 24px;
}

/* LOGIN CARD */
.login-card {
  width: 100%;
  max-width: 420px;
}
/* =====================================================
   FORM
===================================================== */
label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  margin-bottom: 16px;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* PASSWORD */
.password-wrap {
  position: relative;
}

.password-wrap span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

/* =====================================================
   REMEMBER ROW
===================================================== */
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 22px;
  font-size: 14px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #0a4dff;
}

/* LINK BUTTONS (IMPORTANT FIX) */
.link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* =====================================================
   BUTTON
===================================================== */
.login-btn {
  width: 100%;
  background: #0a33ff;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.login-btn:hover {
  background: #0829cc;
}

/* =====================================================
   BACK LINK
===================================================== */
.back {
  margin-top: 20px;
  color: #0a4dff;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 600;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 900px) {
  .info-panel {
    display: none;
  }

  .card-3d {
    width: 100%;
    height: auto;
  }
   .login-page {
    align-items: center;   /* 🔥 vertical center on mobile */
  }
}
