/* auth.css - Specific styles for Authentication Pages (Login/Signup) */

.auth-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding-top: 70px;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--bg-color);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.auth-right {
  flex: 1;
  display: none; /* Hidden on mobile by default */
  background-color: #f4f6f5; /* Light greenish-gray to match reference */
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.auth-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Header */
.auth-header {
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-decoration: none;
}

.auth-title {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 400px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(90, 158, 25, 0.1);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-google:hover {
  background-color: var(--surface-color-light);
}

.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider::before {
  margin-right: .75rem;
}

.auth-divider::after {
  margin-left: .75rem;
}

/* Footer text */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Extra for Login */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-password {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Dark theme overrides for Auth specific elements */
[data-theme="dark"] .auth-right {
  background-color: #1a1a1a;
}

[data-theme="dark"] .btn-submit {
  color: #000;
}
