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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

.signin-container,
.register-container {
  height: 100vh;
  width: 100vw;
  background: transparent;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  color: #2d2416;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.auth-header-new {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  flex-shrink: 0;
}

.logo-link-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #2d2416;
  transition: all 0.3s ease;
}

.logo-link-new:hover {
  transform: translateY(-2px);
}

.logo-image-new {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.15));
}

.logo-text-new {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d2416;
  letter-spacing: -0.5px;
  font-family: 'Poppins', sans-serif;
}

.logo-subtitle-new {
  font-size: 0.7rem;
  color: rgba(45, 36, 22, 0.65);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Combined Box */
.auth-box-combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.1);
  backdrop-filter: blur(10px);
  margin: auto;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  max-height: 700px;
  animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Side */
.auth-image-side {
  background: linear-gradient(135deg, #faf8f3 0%, #f5f1eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-pattern-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Form Side */
.auth-form-side {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 100%;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.3rem 0;
  color: #2d2416;
  letter-spacing: -0.5px;
  font-family: 'Poppins', sans-serif;
  margin-top: 18px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: rgba(45, 36, 22, 0.65);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

.form-group label {
  font-size: 0.8rem;
  color: #2d2416;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1.5px solid rgba(212, 165, 116, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  color: #2d2416;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.form-group input::placeholder {
  color: rgba(45, 36, 22, 0.4);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(212, 165, 116, 0.6);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.password-input {
  position: relative;
}

.password-input input {
  width: 100%;
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.toggle-password:hover {
  opacity: 1;
}

.password-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.requirement {
  font-size: 0.7rem;
  color: rgba(45, 36, 22, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement.valid {
  color: #90be6d;
}

.checkbox-group {
  margin-top: 0.3rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: #2d2416;
  font-weight: 400;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #d4a574;
  flex-shrink: 0;
}

.legal-link {
  color: #d4a574;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.legal-link:hover {
  color: #c89968;
  text-decoration: underline;
}

.auth-submit-new {
  padding: 11px;
  background: linear-gradient(135deg, #d4a574 0%, #c89968 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.25);
  font-family: 'Poppins', sans-serif;
  margin-top: 0.3rem;
}

.auth-submit-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.auth-divider-new {
  text-align: center;
  color: rgba(45, 36, 22, 0.5);
  font-size: 0.75rem;
  position: relative;
  margin: 0.7rem 0;
  font-weight: 500;
}

.auth-divider-new::before,
.auth-divider-new::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(212, 165, 116, 0.2);
}

.auth-divider-new::before {
  left: 0;
}

.auth-divider-new::after {
  right: 0;
}

.google-btn-new {
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #2d2416;
  border: 1.5px solid rgba(212, 165, 116, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.google-btn-new:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 165, 116, 0.4);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
}

.forgot-link-new {
  text-align: center;
  color: #d4a574;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 0.3rem;
}

.forgot-link-new:hover {
  color: #c89968;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: rgba(45, 36, 22, 0.7);
}

.signup-link,
.signin-link {
  color: #d4a574;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.signup-link:hover,
.signin-link:hover {
  color: #c89968;
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 3% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 2px solid #f5f5f5;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #2d2416;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #2d2416;
}

.modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  font-family: 'Outfit', sans-serif;
}

.modal-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  color: #2d2416;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-left: 4px solid #d4a574;
  padding-left: 1rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #2d2416;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.modal-body p {
  margin: 0.75rem 0;
  text-align: justify;
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style-type: disc;
}

.modal-body li {
  margin: 0.5rem 0;
  color: #444;
}

.modal-body strong {
  color: #2d2416;
  font-weight: 600;
}

.modal-body hr {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 1200px) {
  .auth-box-combined {
    width: 95%;
    height: auto;
    max-height: none;
    grid-template-columns: 1fr 1.2fr;
  }

  .auth-image-side {
    min-height: 300px;
  }

  .auth-pattern-image {
    max-height: 300px;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .auth-box-combined {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    width: 90%;
  }

  .auth-image-side {
    display: none;
  }

  .auth-form-side {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .signin-container,
  .register-container {
    height: 100vh;
    overflow-y: auto;
  }

  .auth-header-new {
    padding: 1rem 1.5rem;
  }

  .logo-image-new {
    width: 45px;
    height: 45px;
  }

  .logo-text-new {
    font-size: 1.25rem;
  }

  .auth-box-combined {
    grid-template-columns: 1fr;
    width: 95%;
    height: auto;
    max-height: none;
    margin: 1rem auto;
  }

  .auth-image-side {
    min-height: 200px;
  }

  .auth-form-side {
    padding: 1.5rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .signin-container,
  .register-container {
    height: 100vh;
    overflow-y: auto;
    padding: 0;
  }

  .auth-header-new {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
  }

  .logo-image-new {
    width: 38px;
    height: 38px;
  }

  .logo-text-new {
    font-size: 1.1rem;
  }

  .logo-subtitle-new {
    font-size: 0.65rem;
  }

  .auth-box-combined {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: auto;
    max-height: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-image-side {
    display: none;
  }

  .auth-form-side {
    padding: 1.25rem;
    max-height: none;
    background: transparent;
    border-radius: 0;
    margin: 0;
  }

  .form-title {
    font-size: 1.3rem;
    margin-top: 0;
  }

  .form-subtitle {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .auth-form {
    gap: 0.75rem;
  }

  .form-group {
    gap: 0.25rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group select {
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .password-requirements {
    gap: 0.25rem;
    margin-top: 0.4rem;
  }

  .requirement {
    font-size: 0.65rem;
  }

  .checkbox-label {
    font-size: 0.7rem;
    gap: 0.4rem;
  }

  .checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .auth-submit-new {
    padding: 10px;
    font-size: 0.85rem;
    margin-top: 0.2rem;
  }

  .auth-divider-new {
    font-size: 0.7rem;
    margin: 0.6rem 0;
  }

  .google-btn-new {
    padding: 9px;
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .google-btn-new svg {
    width: 16px;
    height: 16px;
  }

  .forgot-link-new {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }

  .auth-footer {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    padding-bottom: 0;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 1.25rem;
    font-size: 0.85rem;
  }

  .modal-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .modal-body h4 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .signin-container,
  .register-container {
    height: 100vh;
    overflow-y: auto;
    padding: 0;
  }

  .auth-header-new {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0;
  }

  .logo-image-new {
    width: 35px;
    height: 35px;
  }

  .logo-text-new {
    font-size: 1rem;
  }

  .logo-subtitle-new {
    font-size: 0.6rem;
  }

  .auth-box-combined {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .auth-image-side {
    display: none;
  }

  .auth-form-side {
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    margin-top: 80px;
  }

  .form-title {
    font-size: 1.15rem;
  }

  .form-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .auth-form {
    gap: 0.65rem;
  }

  .form-group {
    gap: 0.2rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .form-group input,
  .form-group select {
    padding: 8px 9px;
    font-size: 0.75rem;
  }

  .password-requirements {
    gap: 0.2rem;
    margin-top: 0.3rem;
  }

  .requirement {
    font-size: 0.6rem;
  }

  .checkbox-label {
    font-size: 0.65rem;
    gap: 0.35rem;
  }

  .checkbox-label input[type="checkbox"] {
    width: 13px;
    height: 13px;
  }

  .auth-submit-new {
    padding: 9px;
    font-size: 0.8rem;
  }

  .auth-divider-new {
    font-size: 0.65rem;
    margin: 0.5rem 0;
  }

  .google-btn-new {
    padding: 8px;
    font-size: 0.75rem;
    gap: 0.35rem;
  }

  .google-btn-new svg {
    width: 15px;
    height: 15px;
  }

  .forgot-link-new {
    font-size: 0.65rem;
  }

  .auth-footer {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    padding-bottom: 0;
  }
}
