/* Authentication Pages Styling - TikTok-inspired with Roozter Brand Identity */

/* Global Auth Styles */
body.auth-page {
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  max-width: 480px;
  width: 100%;
  margin: 60px auto;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.auth-header {
  background-color: #1a1a1a;
  color: #FFFFFF;
  padding: 20px 30px;
  position: relative;
}

.auth-header h1 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.auth-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.auth-back:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-body {
  padding: 40px 30px;
}

/* Social Login Buttons */
.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  background-color: #2a2a2a;
  color: #FFFFFF;
}

.social-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #FFFFFF;
}

.social-auth-btn i,
.social-auth-btn img {
  position: absolute;
  left: 20px;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.social-auth-btn.email-phone {
  background-color: #2a2a2a;
}

.social-auth-btn.facebook {
  background-color: #1877f2;
}

.social-auth-btn.google {
  background-color: #FFFFFF;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.social-auth-btn.google:hover {
  background-color: #f8f9fa;
  border-color: #dadce0;
}

.social-auth-btn.linkedin {
  background-color: #0077b5;
}

.social-auth-btn.paypal {
  background-color: #0070ba;
}

.social-auth-btn.apple {
  background-color: #000000;
}

.social-auth-btn.qr-code {
  background-color: #2a2a2a;
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

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

.auth-divider span {
  background-color: #FFFFFF;
  padding: 0 16px;
  position: relative;
  color: #666;
  font-size: 14px;
}

/* Form Styles */
.auth-form {
  margin-top: 30px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.form-section p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.date-selects {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.date-selects select {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #999;
  font-size: 16px;
  cursor: pointer;
}

.date-selects select:focus {
  outline: none;
  border-color: #C72B67;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1a1a;
}

.input-with-country {
  display: flex;
  gap: 8px;
}

.country-select {
  width: 140px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
}

.input-group input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #FFFFFF;
  font-size: 16px;
}

.input-group input:focus {
  outline: none;
  border-color: #C72B67;
}

.input-group input::placeholder {
  color: #999;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
}

.code-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.code-input {
  flex: 1;
}

.send-code-btn {
  white-space: nowrap;
  padding: 0 20px;
  height: 48px;
  background-color: #C72B67;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-code-btn:hover {
  background-color: #9c1d4e;
}

.send-code-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Checkbox */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group a {
  color: #C72B67;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 56px;
  background-color: #4a4a4a;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 24px;
}

.submit-btn:hover:not(:disabled) {
  background-color: #C72B67;
}

.submit-btn:disabled {
  background-color: #4a4a4a;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Links */
.auth-footer {
  text-align: center;
  padding: 24px 30px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.auth-footer p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.auth-footer a {
  color: #C72B67;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-toggle-link {
  text-align: center;
  margin-top: 16px;
}

.auth-toggle-link a {
  color: #C72B67;
  text-decoration: none;
  font-size: 14px;
}

.auth-toggle-link a:hover {
  text-decoration: underline;
}

/* Error Messages */
.error-message {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success Messages */
.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.success-message.show {
  display: block;
}

/* Legal Text */
.legal-text {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 20px;
  line-height: 1.4;
}

.legal-text a {
  color: #C72B67;
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-container {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  
  .auth-header {
    padding: 16px 20px;
  }
  
  .auth-body {
    padding: 30px 20px;
  }
  
  .date-selects {
    flex-direction: column;
  }
  
  .input-with-country {
    flex-direction: column;
  }
  
  .country-select {
    width: 100%;
  }
}

/* Loading State */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #C72B67;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tab Navigation */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: #C72B67;
  border-bottom-color: #C72B67;
}

.auth-tab:hover:not(.active) {
  color: #333;
}

/* Hide sections */
.auth-section {
  display: none;
}

.auth-section.active {
  display: block;
}

/* QR Code Section */
.qr-code-section {
  text-align: center;
  padding: 40px 20px;
}

.qr-code-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #999;
}

.qr-instructions {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
