/* Auth Pages Styling (Login & Register) */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  min-height: 100vh;
  color: #223126;
}

.auth-page-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  gap: 0;
}

/* ===== LEFT SIDE - BRANDING ===== */

.auth-left-side {
  background-image: url('../images/invest.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #ffffff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideInLeft 0.5s ease;
  position: relative;
  overflow: hidden;
}

.auth-left-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.7) 0%, rgba(46, 125, 50, 0.6) 100%);
  z-index: 0;
}

.auth-branding,
.auth-features {
  position: relative;
  z-index: 1;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-branding {
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.auth-logo:hover {
  transform: scale(1.05);
}

.auth-branding h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-branding p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

.feature-icon {
  font-size: 2rem;
}

.feature-item p {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== RIGHT SIDE - FORM ===== */

.auth-right-side {
  background: #f7f4ea;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 8px 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.auth-back-btn:hover {
  background: rgba(46, 125, 50, 0.15);
  transform: translateX(-4px);
}

.auth-header-standalone {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header-standalone h2 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 8px;
  font-weight: 700;
}

.auth-header-standalone p {
  color: #999;
  font-size: 0.95rem;
}

/* Form Styling */
.auth-form-standalone {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #223126;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
  background: rgba(46, 125, 50, 0.02);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2e7d32;
}

.checkbox-label {
  margin: 0 !important;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Auth Button */
.auth-btn-standalone {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.auth-btn-standalone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.auth-btn-standalone:active {
  transform: translateY(0);
}

/* Divider */
.auth-divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

.auth-divider span {
  position: relative;
  z-index: 1;
  background: #f7f4ea;
  padding: 0 12px;
}

/* Social Logins */
.social-logins-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn-page {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #223126;
}

.social-btn-page:hover {
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.05);
  transform: translateY(-2px);
}

.google-btn svg,
.email-btn svg {
  width: 20px;
  height: 20px;
}

/* Auth Footer */
.auth-footer-standalone {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-footer-standalone p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.link-btn {
  color: #2e7d32;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.link-btn:hover {
  color: #1b5e20;
}

.forgot-password {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #2e7d32;
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  .auth-left-side {
    padding: 40px 30px;
  }

  .auth-right-side {
    padding: 30px;
  }

  .auth-logo {
    width: 70px;
    height: 70px;
  }

  .auth-branding h1 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .auth-page-container {
    grid-template-columns: 1fr;
  }

  .auth-left-side {
    padding: 40px 20px;
    min-height: auto;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }

  .auth-right-side {
    padding: 40px 20px;
  }

  .auth-branding h1 {
    font-size: 1.8rem;
  }

  .auth-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .feature-item {
    padding: 12px;
    gap: 8px;
  }

  .feature-icon {
    font-size: 1.5rem;
  }

  .feature-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .auth-page-container {
    min-height: auto;
  }

  .auth-left-side {
    padding: 30px 20px;
  }

  .auth-right-side {
    padding: 20px;
  }

  .auth-logo {
    width: 60px;
    height: 60px;
  }

  .auth-branding h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .auth-branding p {
    font-size: 0.9rem;
  }

  .auth-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .feature-item {
    padding: 10px;
    gap: 8px;
  }

  .feature-icon {
    font-size: 1.3rem;
  }

  .feature-item p {
    font-size: 0.8rem;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .auth-back-btn {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .auth-header-standalone h2 {
    font-size: 1.5rem;
  }

  .auth-header-standalone p {
    font-size: 0.9rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 11px 14px;
    font-size: 16px;
  }

  .auth-btn-standalone {
    padding: 12px 20px;
  }

  .social-logins-page {
    gap: 10px;
  }

  .social-btn-page {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 450px) {
  .auth-left-side {
    padding: 20px;
  }

  .auth-right-side {
    padding: 15px;
  }

  .auth-logo {
    width: 50px;
    height: 50px;
  }

  .auth-branding h1 {
    font-size: 1.3rem;
  }

  .auth-branding p {
    font-size: 0.8rem;
  }

  .auth-features {
    gap: 8px;
    margin-top: 15px;
  }

  .feature-icon {
    font-size: 1.1rem;
  }

  .feature-item p {
    font-size: 0.75rem;
  }

  .auth-header-standalone h2 {
    font-size: 1.3rem;
  }

  .auth-header-standalone p {
    font-size: 0.85rem;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 10px 12px;
    font-size: 16px;
  }

  .auth-btn-standalone {
    padding: 11px 16px;
    font-size: 0.95rem;
  }

  .auth-footer-standalone p {
    font-size: 0.8rem;
  }

  .link-btn {
    font-size: 0.8rem;
  }

  .forgot-password {
    font-size: 0.8rem;
  }
}
