@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f8fafc;
  min-height: 100vh;
}

/* --- Split Layout Container --- */
.auth-page {
  display: flex;
  min-height: 100vh;
}

/* --- Left Side: Hero Section --- */
.auth-hero {
  flex: 1;
  background-color: #2563eb;
  color: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.hero-logo i {
  background: white;
  color: #2563eb;
  padding: 6px;
  border-radius: 8px;
  font-size: 22px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 16px;
  color: #bfdbfe;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.social-icons-row {
  display: flex;
  gap: 15px;
}

.social-icons-row .s-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: 0.3s;
}

.social-icons-row .s-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatars {
  display: flex;
}

.avatars div {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #93c5fd;
  border: 2px solid #2563eb;
  margin-left: -10px;
}
.avatars div:first-child {
  margin-left: 0;
  background: #bfdbfe;
}
.avatars div:last-child {
  background: #60a5fa;
}

.hero-footer p {
  font-size: 14px;
  color: #bfdbfe;
}

/* Floating Notification */
.floating-notification {
  position: absolute;
  bottom: 40px;
  left: 40px; /* Moved to bottom left to keep out of the center */
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: #111827;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  z-index: 10;
}

.floating-notification.hide {
  opacity: 0;
  transform: translateY(15px);
}

.floating-notification i.logo-icon {
  color: #2563eb;
  background: #eff6ff;
  padding: 8px;
  border-radius: 8px;
  font-size: 20px;
}

.floating-notification .text p {
  font-size: 13px;
  font-weight: 500;
}

.floating-notification .text span {
  font-size: 12px;
  color: #6b7280;
}

.floating-notification i.success-icon {
  color: #10b981;
  font-size: 18px;
  margin-left: 10px;
}
/* --- Right Side: Auth Form --- */
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.auth-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-card p.subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 35px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i.icon-left {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 18px;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background-color: #f9fafb;
  color: #111827;
}

.input-wrapper input:focus {
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.input-wrapper .toggle-password:hover {
  color: #4b5563;
}

.input-wrapper input[type="password"],
.input-wrapper input[type="text"].has-toggle {
  padding-right: 42px;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  margin-top: -5px;
  margin-bottom: 20px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background-color: #2563eb;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.secure-badge {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
}
.alert-success {
  background: #dcfce7;
  color: #166534;
}

.mobile-auth-logo {
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 30px;
}

.mobile-auth-logo i {
  background: #2563eb;
  color: white;
  padding: 6px;
  border-radius: 8px;
  font-size: 22px;
}

.hero-footer .avatars div {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-block;
  margin-right: -10px;
  border: 2px solid #26354d;
}

.hero-footer .avatars div:nth-child(1) {
  background-image: url("https://images.pexels.com/photos/5668772/pexels-photo-5668772.jpeg?auto=compress&cs=tinysrgb&w=150");
}
.hero-footer .avatars div:nth-child(2) {
  background-image: url("https://images.pexels.com/photos/1656684/pexels-photo-1656684.jpeg?auto=compress&cs=tinysrgb&w=150");
}
.hero-footer .avatars div:nth-child(3) {
  background-image: url("https://images.pexels.com/photos/678783/pexels-photo-678783.jpeg?auto=compress&cs=tinysrgb&w=150");
}

/* Responsive layout*/
@media (max-width: 900px) {
  .mobile-auth-logo {
    display: flex;
  }

  .auth-hero {
    display: none;
  }

  .auth-main {
    padding: 20px;
  }
  .auth-card {
    padding: 40px 25px;
  }
  .floating-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;

    width: auto;
    transform: translateY(0);
    opacity: 1;
    display: flex !important; /* Force display on mobile */
  }

  .floating-notification.hide {
    transform: translateY(20px);
    opacity: 0;
  }
  .auth-main {
    background: transparent;
  }
}

/* Global Mobile Zoom Fix for Auth Pages */
@media screen and (max-width: 768px) {
    input {
        font-size: 16px !important;
    }
}