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

:root {
  --primary: #000000;
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-muted: #777777;
  --border: #e0e0e0;
  --accent: #555555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Public Sans', sans-serif;
}

body {
  background-color: var(--bg-page);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-container {
  width: 100%;
  max-width: 1100px;
  padding: 20px;
}

.auth-card {
  display: flex;
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  min-height: 700px;
}

/* Form Side */
.form-side {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  /* Ensure inputs take full width */
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background-color: #fafafa;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
}

.password-wrapper {
  position: relative;
  width: 100%;
  /* Ensure wrapper takes full width */
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forgot-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.benefits-section {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  font-size: 13px;
}

.benefits-section p {
  font-weight: 700;
  margin-bottom: 8px;
}

.benefits-section ul {
  list-style: none;
  padding-left: 0;
}

.benefits-section li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.benefits-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.privacy-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-note a {
  color: var(--primary);
  text-decoration: underline;
}

.auth-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}

.auth-btn:hover {
  opacity: 0.9;
}

.social-login {
  margin-top: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

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

.switch-auth {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.switch-auth a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.error-message {
  color: #d32f2f;
  font-size: 12px;
}

/* Image Side */
.image-side {
  flex: 1.2;
  background-image: url('/images/signuppage.jpg');
  /* Local brand image */
  background-size: cover;
  background-position: center;
  position: relative;
}

.image-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  /* Subtle overlay */
}

@media (max-width: 900px) {
  .image-side {
    display: none;
  }

  .form-side {
    padding: 40px;
  }
}