/* Authentication Page Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Hero Section */
.auth-hero {
  background: url('../assets/ccc.jpg') center/cover no-repeat;
  padding: 120px 0 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-hero::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="%23d4af37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-icon {
  margin-bottom: 30px;
}

.hero-icon i {
  font-size: 4rem;
  color: #d4af37;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.auth-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-hero p {
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Authentication Section */
.auth-section {
  padding: 80px 0;
  background: #ffffff;
}

.auth-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

/* Authentication Info */
.auth-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 30px;
  position: relative;
}

.auth-info h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  border-radius: 2px;
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid #d4af37;
}

.step-item:hover {
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* Authentication System */
.auth-system {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.system-header {
  text-align: center;
  margin-bottom: 30px;
}

.system-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 10px;
}

.system-header p {
  color: #666;
  font-size: 1.1rem;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0f0f0;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Security Notice */
.security-notice {
  padding: 60px 0;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  color: #ffffff;
}

.notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.notice-icon {
  flex-shrink: 0;
}

.notice-icon i {
  font-size: 3rem;
  color: #ffffff;
  opacity: 0.9;
}

.notice-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Footer - Same as other pages */
.about-footer {
  background: #262728;
  padding: 40px 0;
  border-top: 1px solid #e9ecef;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo img {
  height: 40px;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  color: #666;
  font-size: 0.9rem;
  margin: 2px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .auth-hero h1 {
    font-size: 2.2rem;
  }
  
  .iframe-container {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .auth-hero {
    padding: 100px 0 60px 0;
  }
  
  .auth-hero h1 {
    font-size: 2rem;
  }
  
  .auth-hero p {
    font-size: 1.1rem;
  }
  
  .hero-icon i {
    font-size: 3rem;
  }
  
  .auth-container {
    padding: 0 15px;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .iframe-container {
    height: 450px;
  }
  
  .notice-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-hero {
    padding: 80px 0 40px 0;
  }
  
  .auth-hero h1 {
    font-size: 1.8rem;
  }
  
  .auth-hero p {
    font-size: 1rem;
  }
  
  .hero-icon i {
    font-size: 2.5rem;
  }
  
  .auth-section {
    padding: 60px 0;
  }
  
  .auth-system {
    padding: 20px;
  }
  
  .iframe-container {
    height: 400px;
  }
  
  .security-notice {
    padding: 40px 0;
  }
  
  .notice-content h3 {
    font-size: 1.5rem;
  }
  
  .notice-content p {
    font-size: 1rem;
  }
}

/* Ultra-small phones */
@media (max-width: 360px) {
  .auth-hero h1 { font-size: 1.6rem; }
  .auth-hero p { font-size: 0.95rem; }
  .auth-system { padding: 18px; }
  .iframe-container { height: 360px; }
}

/* Loading Animation for iframe */
.iframe-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.iframe-container iframe {
  position: relative;
  z-index: 2;
}

/* Focus States for Accessibility */
.step-item:focus-within,
.auth-system:focus-within {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .step-item,
  .auth-system {
    border: 2px solid #000;
  }
  
  .step-number {
    background: #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .step-item,
  .iframe-container::before {
    transition: none;
    animation: none;
  }
}
