/* auth.css: styles for login and signup pages */

/* Auth main container */
.auth-main {
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
}

/* Form wrapper */
.auth-form-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-family: var(--font-family-head);
  font-weight: 400;
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-color);
  font-size: 18px;
  margin: 0;
}

/* Form styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-field label {
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-color);
}

.form-field input {
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-family-body);
  background: white;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(9, 49, 40, 0.1);
}

.form-field input::placeholder {
  color: #999;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.form-options:first-of-type {
  justify-content: flex-start;
}

/* Custom checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Links */
.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Auth button */
.auth-btn {
  display: inline-block;
  background: var(--bg-color) !important;
  color: var(--text-color) !important;
  border: 4px solid var(--text-color) !important;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 15px !important;
  font-weight: 400;
  font-family: var(--font-family-head);
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px var(--text-color) !important;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
}

.auth-btn:hover {
  background: var(--text-color) !important;
  color: white !important;
  box-shadow: 2px 2px 0px var(--text-color) !important;
  transform: translate(2px, 2px);
}

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.auth-footer p {
  margin: 0;
  color: var(--text-color);
}

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

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

/* Visual content */
.auth-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/Fixed Section background image.png") no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.visual-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  width: 100%;
  max-width: 280px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.visual-content h2 {
  font-family: var(--font-family-head);
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 16px;
}

.visual-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Benefits list */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.benefit-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

/* Responsive design */
@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-visual {
    order: -1;
    min-height: 300px;
    padding: 40px 30px;
  }

  .auth-logo {
    max-width: 200px;
    margin-bottom: 20px;
  }

  .visual-content h2 {
    font-size: 24px;
  }

  .benefits {
    display: none;
  }
}

@media (max-width: 768px) {
  .auth-main {
    padding: 20px 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-header p {
    font-size: 16px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .auth-visual {
    min-height: 250px;
    padding: 30px 20px;
  }

  .visual-content h2 {
    font-size: 20px;
  }

  .visual-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .auth-form-wrapper {
    max-width: 100%;
  }

  .auth-btn {
    font-size: 18px;
    padding: 14px 32px;
  }

  .checkbox-label {
    font-size: 13px;
  }
}
