/* New dedicated CSS file for modern authentication forms */

/* ============================================
   MODERN AUTH FORMS - SNAPIT PROFILES
   Responsive Login & Register Forms
   ============================================ */

/* Main Container */
.snapit-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  padding: 20px;
}

.snapit-auth-wrapper {
  width: 100%;
  max-width: 1200px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 700px;
}

/* Left Branding Section */
.snapit-auth-branding {
  background: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.snapit-auth-branding::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.snapit-auth-branding-content {
  position: relative;
  z-index: 1;
}

.snapit-brand-logo {
  margin-bottom: 32px;
}

.snapit-brand-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.snapit-brand-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 40px 0;
}

.snapit-auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.snapit-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 15px;
  font-weight: 500;
}

.snapit-feature-item svg {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 4px;
}

/* Right Form Section */
.snapit-auth-form-section {
  padding: 60px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.snapit-auth-form-wrapper {
  width: 100%;
  max-width: 440px;
}

.snapit-auth-header {
  margin-bottom: 32px;
}

.snapit-auth-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.snapit-auth-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Modern Form Styles */
.snapit-modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.snapit-modern-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapit-modern-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.snapit-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.snapit-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.snapit-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #1a202c;
  font-family: inherit;
  transition: all 0.2s ease;
}

.snapit-modern-form-group input:not(.snapit-input-wrapper input) {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #1a202c;
  font-family: inherit;
  transition: all 0.2s ease;
}

.snapit-input-wrapper input:focus,
.snapit-modern-form-group input:focus {
  outline: none;
  border-color: #00bcd4;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.snapit-input-wrapper input::placeholder,
.snapit-modern-form-group input::placeholder {
  color: #94a3b8;
}

.snapit-field-hint {
  font-size: 13px;
  color: #64748b;
  margin-top: -4px;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

/* Form Row for 2 Columns */
.snapit-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Form Options (Remember Me & Forgot Password) */
.snapit-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -8px 0;
}

.snapit-modern-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.snapit-modern-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00bcd4;
}

.snapit-checkbox-label {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.snapit-link-small {
  font-size: 14px;
  color: #00bcd4;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.snapit-link-small:hover {
  color: #00acc1;
}

/* Modern Buttons */
.snapit-modern-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.snapit-modern-btn-primary {
  background: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.snapit-modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.snapit-modern-btn-secondary {
  background: white;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.snapit-modern-btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.snapit-modern-btn-full {
  width: 100%;
}

/* Form Divider */
.snapit-form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.snapit-form-divider::before,
.snapit-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.snapit-form-divider span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Footer */
.snapit-form-footer {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #64748b;
}

.snapit-link-primary {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.snapit-link-primary:hover {
  color: #00acc1;
  text-decoration: underline;
}

/* Modern Alerts */
.snapit-modern-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease;
}

.snapit-modern-alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.snapit-modern-alert-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border: 2px solid #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.snapit-modern-alert-error svg {
  stroke: #dc2626;
}

.snapit-modern-alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 2px solid #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.snapit-modern-alert-success svg {
  stroke: #16a34a;
}

.snapit-modern-alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.snapit-modern-alert-warning svg {
  stroke: #f59e0b;
}

/* Info alert styling (optional for future use) */
.snapit-modern-alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border: 2px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.snapit-modern-alert-info svg {
  stroke: #2563eb;
}

.snapit-alert-content {
  flex: 1;
}

.snapit-alert-list {
  margin: 8px 0 0 0;
  padding: 0 0 0 20px;
  list-style-type: none;
}

.snapit-alert-list li {
  margin: 6px 0;
  position: relative;
  padding-left: 0;
}

.snapit-alert-list li:before {
  content: "•";
  position: absolute;
  left: -20px;
  font-weight: bold;
  font-size: 18px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .snapit-auth-wrapper {
    grid-template-columns: 400px 1fr;
  }

  .snapit-auth-branding {
    padding: 50px 40px;
  }

  .snapit-auth-form-section {
    padding: 50px 50px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .snapit-auth-container {
    padding: 0;
  }

  .snapit-auth-wrapper {
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: 100vh;
  }

  .snapit-auth-branding {
    padding: 40px 24px;
    min-height: auto;
  }

  .snapit-brand-title {
    font-size: 26px;
  }

  .snapit-brand-description {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .snapit-auth-features {
    gap: 12px;
  }

  .snapit-feature-item {
    font-size: 14px;
  }

  .snapit-auth-form-section {
    padding: 40px 24px;
  }

  .snapit-auth-header h2 {
    font-size: 24px;
  }

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

  .snapit-form-row-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  .snapit-auth-branding {
    padding: 32px 20px;
  }

  .snapit-brand-title {
    font-size: 22px;
  }

  .snapit-brand-description {
    font-size: 14px;
  }

  .snapit-auth-form-section {
    padding: 32px 20px;
  }

  .snapit-auth-header h2 {
    font-size: 22px;
  }

  .snapit-input-wrapper input,
  .snapit-modern-form-group input {
    padding: 12px 14px 12px 44px;
    font-size: 14px;
  }

  .snapit-modern-form-group input:not(.snapit-input-wrapper input) {
    padding: 12px 14px;
  }

  .snapit-modern-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
