@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 1rem;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.auth-left {
  display: none; /* Hide on mobile by default, show on desktop */
}

.auth-left img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents image cropping */
  padding: 2rem; /* Adds breathing room around the logo/illustration */
  background-color: #f8fafc; /* Optional: Soft background */
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* Reduced padding for mobile to prevent scroll */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Split layout on desktop */
@media (min-width: 768px) {
  .auth-wrapper {
    flex-direction: row;
    height: 600px;
  }
  .auth-left {
    display: block;
    flex: 1;
    position: relative;
    background-color: #f8fafc;
  }
  .auth-right {
    flex: 1;
    padding: 3rem; /* Restored larger padding for desktop */
  }
}

/* Typography & Form Styles */
.container h2 {
  font-size: 1.5rem; /* Smaller for mobile */
  text-align: left;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.2rem;
}

.container h3 {
  text-align: left;
  font-size: 0.9rem; /* Smaller for mobile */
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 1.5rem; /* Reduced spacing */
}

/* Desktop typography restore */
@media (min-width: 768px) {
  .container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .container h3 {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.input-group {
  margin-bottom: 1rem;
  position: relative;
  text-align: left;
}

@media (min-width: 768px) {
  .input-group {
    margin-bottom: 1.2rem;
  }
}

.input-group input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.8rem; /* Tighter padding on mobile */
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f9fafb;
}

@media (min-width: 768px) {
  .input-group input {
    padding: 0.85rem 2.5rem 0.85rem 3rem;
  }
}

.input-group input:focus {
  border-color: #fe522a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(254, 82, 42, 0.1);
}

.input-group i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .input-group i {
    font-size: 1.1rem;
  }
}

.input-group .fa-user,
.input-group .fa-lock,
.input-group .fa-phone {
  left: 0.8rem;
}

@media (min-width: 768px) {
  .input-group .fa-user,
  .input-group .fa-lock,
  .input-group .fa-phone {
    left: 1rem;
  }
}

.input-group .toggle-password {
  right: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  color: #6b7280;
}

.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem; /* Reduced for mobile */
}

@media (min-width: 768px) {
  .toggle-group {
    margin-bottom: 2rem;
  }
}

.toggle-group label {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

@media (min-width: 768px) {
  .toggle-group label {
    font-size: 0.9rem;
  }
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

@media (min-width: 768px) {
  .toggle-switch {
    width: 44px;
    height: 24px;
  }
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .slider:before {
    height: 18px;
    width: 18px;
  }
}

input:checked + .slider {
  background-color: #fe522a;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

@media (min-width: 768px) {
  input:checked + .slider:before {
    transform: translateX(20px);
  }
}

.btn {
  width: 100%;
  background-color: #fe522a;
  color: white;
  padding: 0.75rem; /* Tighter for mobile */
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(254, 82, 42, 0.2);
}

@media (min-width: 768px) {
  .btn {
    padding: 0.85rem;
    font-size: 1rem;
  }
}

.btn:hover {
  background-color: #e0431f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(254, 82, 42, 0.3);
}

.text-center {
  text-align: center;
  color: #4b5563;
  margin-top: 1rem; /* Reduced */
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .text-center {
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }
}

.text-center a {
  color: #fe522a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.text-center a:hover {
  color: #c93b1d;
  text-decoration: underline;
}

/* Mobile-only visible image */
.mobile-image {
  display: block;
  width: 100%;
  max-width: 100px; /* Reduced size so it fits on mobile screen without scrolling */
  margin: 0 auto 1rem auto; /* Tighter margin */
  border-radius: 10px;
}
@media (min-width: 768px) {
  .mobile-image {
    display: none;
  }
}
