/* ===== signin.css – Login to Shophive (edge‑to‑edge mobile) ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #ff6b6b;
  --accent: #f9c74f;
  --success: #4caf50;
  --danger: #ff6b6b;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --white: #ffffff;
  --bg-light: #f8fafc;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 20px 30px -10px rgba(67, 97, 238, 0.2);
  --transition: all 0.2s ease;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* ===== MODERN HEADER – edge‑to‑edge ===== */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
  padding: 0.75rem 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-800);
  padding: 0.25rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.back-btn:hover { color: var(--primary); }

.header-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  padding-right: 1rem;
}

/* ===== MAIN CONTAINER – edge‑to‑edge ===== */
.main-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

/* ----- FORM CARD – full width on mobile, inner padding ----- */
.form-card {
  background: var(--white);
  border-radius: 0;               /* flat on mobile */
  margin: 0 0 1rem 0;              /* only bottom margin */
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.highlight {
  color: var(--primary);
}
.login-subtitle {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ----- Alert Messages (edge‑to‑edge) ----- */
.alert-message {
  background: var(--gray-100);
  border-left: 4px solid var(--primary);
  color: var(--gray-800);
  padding: 1rem;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  border-radius: 0;
}
.alert-message.success {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: var(--success);
  color: var(--success);
}
.alert-message.error {
  background: rgba(255, 107, 107, 0.1);
  border-left-color: var(--danger);
  color: var(--danger);
}

/* ----- Form ----- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}
.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Password toggle button */
.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 1.2rem;
  transition: var(--transition);
}
.toggle-password:hover {
  color: var(--primary);
}

/* Form options row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  cursor: pointer;
}
.remember-me input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
}
.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px var(--primary);
}
.btn-text {
  position: relative;
}

.login-footer {
  text-align: center;
  margin-top: 1rem;
  color: var(--gray-600);
}
.auth-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* ----- BENEFITS HERO – full width, inner padding ----- */
.login-hero {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 0;               /* flat on mobile */
  margin: 0;                       /* no margin */
  padding: 2rem 1.5rem;
  color: white;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.benefit-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* ===== TABLET & DESKTOP UPGRADES ===== */
@media (min-width: 768px) {
  .main-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    min-height: auto;
  }

  .form-card,
  .login-hero {
    border-radius: var(--radius-xl);
    margin: 0;
    flex: 1;
    max-width: 500px;
  }

  .form-card {
    padding: 2.5rem;
  }

  .login-hero {
    background: rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
  }
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}
.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== UTILITIES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
}