/* Authentication Pages Layout Styles */
/* Inspired by InstaWallpapers design */

:root {
  --auth-primary: #007bff;
  --auth-primary-hover: #0056b3;
  --auth-text-dark: #1a1a1a;
  --auth-text-light: #6c757d;
  --auth-border: #dee2e6;
  --auth-bg-light: #f8f9fa;
}

/* Body Styles */
.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

/* Header Navigation */
.auth-header {
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--auth-text-dark);
  transition: all 0.3s ease;
}

.auth-logo:hover {
  color: var(--auth-primary);
}

.logo-text {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.auth-nav-link {
  text-decoration: none;
  color: var(--auth-text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.auth-nav-link:hover {
  color: var(--auth-primary);
  background: rgba(0, 123, 255, 0.05);
}

.auth-nav-link-primary {
  background: var(--auth-primary);
  color: white !important;
}

.auth-nav-link-primary:hover {
  background: var(--auth-primary-hover);
  color: white !important;
}

/* Diagonal Scrolling Background */
.diagonal-scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.diagonal-scroll-wrapper {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  display: flex;
  gap: 2rem;
  transform: rotate(-15deg);
  opacity: 0.6;
}

.scroll-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  will-change: transform;
}

.scroll-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  filter: contrast(1.15) saturate(1.15) brightness(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Scroll Animations */
.scroll-up {
  animation: scrollUp 150s linear infinite;
}

.scroll-down {
  animation: scrollDown 150s linear infinite;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Diagonal Overlay */
.diagonal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.9) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  pointer-events: none;
}

/* Main Content */
.auth-main {
  position: relative;
  z-index: 100;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.auth-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Hero Title */
.auth-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  color: var(--auth-text-dark);
  margin-bottom: 3rem;
  line-height: 1.2;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.8),
    1px -1px 0 rgba(255, 255, 255, 0.8),
    -1px 1px 0 rgba(255, 255, 255, 0.8),
    1px 1px 0 rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.9);
}

/* Form Container */
.auth-form-container {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Form Styles */
.auth-form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-form-subtitle {
  color: var(--auth-text-light);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  display: block;
  font-weight: 600;
  color: var(--auth-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--auth-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--auth-bg-light);
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.auth-form-checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--auth-text-dark);
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--auth-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-submit-btn:hover {
  background: var(--auth-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

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

.auth-divider span {
  padding: 0 1rem;
  color: var(--auth-text-light);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Third-party Auth Buttons */
.auth-oauth-btn {
  width: 100%;
  padding: 0.875rem;
  background: white;
  color: var(--auth-text-dark);
  border: 2px solid var(--auth-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-oauth-btn:hover {
  border-color: var(--auth-primary);
  background: rgba(0, 123, 255, 0.05);
}

.auth-oauth-btn i {
  font-size: 1.25rem;
}

/* Links */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--auth-border);
}

.auth-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

.auth-link-subtle {
  color: var(--auth-text-light);
  font-size: 0.875rem;
}

/* Error Messages */
.auth-error-explanation {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-error-explanation h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #842029;
  margin-bottom: 0.5rem;
}

.auth-error-explanation ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #842029;
}

/* Password Requirements */
.auth-password-requirements {
  background: var(--auth-bg-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.auth-password-requirements ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--auth-text-light);
}

/* Footer */
.auth-footer {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--auth-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-hero-title {
    font-size: 2rem;
  }

  .auth-form-container {
    padding: 2rem 1.5rem;
  }

  .auth-main {
    padding: 2rem 1rem;
  }

  .diagonal-scroll-wrapper {
    gap: 1rem;
  }

  .scroll-column {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .auth-hero-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .auth-form-container {
    padding: 1.5rem 1rem;
  }

  .auth-nav-links {
    gap: 0.75rem;
  }

  .auth-nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: reduce) {
  .scroll-up,
  .scroll-down {
    animation: none;
  }

  .auth-submit-btn:hover {
    transform: none;
  }
}
