/* ===== AUTH.CSS - CLEAN REWRITE ===== */

/* 1. RESET AND BASE STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input {
  font-family: inherit;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}

/* 2. AUTH WRAPPER AND FULL-SCREEN LAYOUT */
.auth-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.full-screen-card {
  width: 100%;
  height: 110vh;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  background: rgba(254, 239, 239, 0.95);
  backdrop-filter: blur(30px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.full-screen-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  z-index: 0;
}

.form-section,
.image-section {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* 3. IMAGE SECTION */
.image-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  overflow: hidden;
}

.full-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-rect-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2);
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(1.1) contrast(1.1);
}

.full-image:hover .full-rect-image {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.2);
}

.image-overlay {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: 30px;
  max-width: calc(100% - 60px);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 25px;
  text-align: center;
  animation: slideUp 1s ease-out 0.3s both;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.image-overlay h3 {
  font-size: 32px;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.image-overlay p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.98;
  font-weight: 400;
}

/* 4. AUTH CARD AND FORM LAYOUT */
.auth-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  padding: 80px 60px;
  width: 100%;
  text-align: center;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.8s ease-out;
}

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

/* 5. FORM ELEMENTS */
form {
  animation: fadeInUp 0.5s ease-out;
}

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

.field {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.field label {
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.field input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.field input::placeholder {
  color: #9ca3af;
}

/* Password toggle */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: #6b7280;
}

.password-toggle:hover .eye-icon {
  fill: #667eea;
}

button[type="submit"] {
  width: 100%;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Switch link */
.switch {
  margin-top: 28px;
  font-size: 15px;
  color: #6b7280;
  font-weight: 500;
}

.switch span {
  color: #667eea;
  cursor: pointer;
  font-weight: 700;
  position: relative;
}

.switch span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.switch span:hover::after {
  width: 100%;
}

.switch span:hover {
  color: #764ba2;
}

/* 6. QUOTE SECTIONS */
.login-quote-section,
.signup-quote-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  border-left: 6px solid #667eea;
  text-align: center;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.login-quote-section::before,
.signup-quote-section::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  color: rgba(102, 126, 234, 0.2);
  font-weight: bold;
  z-index: 0;
}

.login-quote,
.signup-quote {
  font-size: 22px;
  font-style: italic;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-size: 16px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* 7. DIVIDER */
.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #6b7280;
  font-size: 14px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* 8. SOCIAL LOGIN - FIXED FOR ICON CLIPPING */
.social-login {
  margin-top: 24px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  padding: 8px; /* Inner padding to prevent clipping */
  box-sizing: border-box;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.social-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.social-btn:hover::before {
  opacity: 1;
}

.social-icon {
  width: 24px;
  height: 24px;
  z-index: 1;
  position: relative;
  flex-shrink: 0;
}

/* Specific button styles */
.google-btn {
  background: linear-gradient(135deg, #4285F4, #34A853);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.google-btn:hover {
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.google-btn .social-icon {
  width: 26px;
  height: 26px;
}

.github-btn {
  background: linear-gradient(135deg, #24292e, #1a1e22);
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.github-btn:hover {
  box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .full-screen-card {
    max-width: 100%;
  }

  .image-overlay {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }

  .auth-card {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .full-screen-card {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .form-section,
  .image-section {
    min-height: 50vh;

@media (max-width: 480px) {
  .auth-card {
    padding: 40px 24px;
  }

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

  .subtitle {
    font-size: 14px;
  }

  .field input {
    padding: 14px 16px;
    font-size: 16px;
  }

  button[type="submit"] {
    padding: 16px 20px;
    font-size: 16px;
  }

  .social-buttons {
    gap: 18px;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    padding: 6px;
  }

  .social-icon {
    width: 20px;
    height: 20px;
  }

  .google-btn .social-icon {
    width: 22px;
    height: 22px;
  }

  .login-quote-section,
  .signup-quote-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .login-quote,
  .signup-quote {
    font-size: 18px;
  }

  .quote-author {
    font-size: 14px;
  }

  .divider {
    margin: 16px 0;
  }
}

/* Modal styles (if used) */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f0f8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  z-index: 1001;
}

.auth-modal .modal-close:hover {
  color: #374151;
}

body.auth-modal-active {
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
  }
}