/* ========================================
   QUADEX TECHNOLOGIES - LOGIN PAGE
   ======================================== */

:root {
  --primary-color: #00d4ff;
  --secondary-color: #0066ff;
  --accent-color: #ff00ff;
  --cyan: #00d4ff;
  --dark-bg: #0a0e27;
  --darker-bg: #050810;
  --light-text: #ffffff;
  --gray-text: #a0aec0;
  --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --font-primary: 'Exo 2', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 2rem 0;
}

/* Animated Background Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 5s infinite ease-in-out;
  box-shadow: 0 0 10px var(--primary-color);
}

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
  }
}

/* Main Container */
.login-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 2rem;
  animation: slideIn 0.8s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.logo-section a {
  display: block;
  margin-bottom: 1.5rem;
}

/* Animated GIF Logo for Login Page */
.logo-section .animated-logo {
  width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
  transition: all 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.logo-section .animated-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
}

.company-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--gray-text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Form Container */
.form-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.form-container.hidden {
  display: none;
}

.form-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* Input Groups */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
}

.input-group .toggle-password {
  left: auto;
  right: 1.2rem;
  cursor: pointer;
  color: var(--gray-text);
  transition: color 0.3s ease;
}

.input-group .toggle-password:hover {
  color: var(--primary-color);
}

.input-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 15px;
  color: var(--light-text);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.input-group input::placeholder {
  color: var(--gray-text);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-text);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary-color);
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--light-text);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-secondary);
  border: none;
  border-radius: 15px;
  color: var(--light-text);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.4);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.6);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 212, 255, 0.2);
}

.divider span {
  padding: 0 1rem;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  color: var(--light-text);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 1.2rem;
}

.social-btn.google:hover {
  border-color: #4285f4;
  box-shadow: 0 5px 20px rgba(66, 133, 244, 0.3);
}

.social-btn.microsoft:hover {
  border-color: #00a4ef;
  box-shadow: 0 5px 20px rgba(0, 164, 239, 0.3);
}

/* Switch Form Link */
.switch-form {
  text-align: center;
  color: var(--gray-text);
  font-size: 0.95rem;
}

.switch-form a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.switch-form a:hover {
  color: var(--light-text);
}

/* Info Section */
.info-section {
  display: none; /* Hidden in current single-column layout */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 25px;
  padding: 3rem 2.5rem;
  flex-direction: column;
  justify-content: center;
}

.info-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  min-width: 50px;
}

.feature h4 {
  color: var(--light-text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--gray-text);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    width: 95%;
  }
  
  .logo-section {
    padding: 1.5rem;
  }
  
  .admin-info-banner {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
  
  .form-container {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .login-container {
    width: 95%;
    padding: 1rem;
  }
  
  .form-container {
    padding: 1.5rem 1.2rem;
  }
  
  .logo-section {
    padding: 1rem;
  }
  
  .logo-section .animated-logo {
    width: 140px;
  }
  
  .company-name {
    font-size: 1.4rem;
  }
  
  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .admin-info-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  
  .form-tabs {
    gap: 1rem;
  }
  
  .tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .input-group {
    margin-bottom: 1.5rem;
  }
  
  .form-input {
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-size: 1rem;
  }
  
  .input-icon {
    font-size: 1.1rem;
    left: 1rem;
  }
  
  .submit-button {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .social-login {
    gap: 0.75rem;
  }
  
  .social-btn {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
  
  .social-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    width: 100%;
    padding: 0.5rem;
  }
  
  .form-container {
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }
  
  .logo-section .animated-logo {
    width: 120px;
  }
  
  .company-name {
    font-size: 1.2rem;
  }
  
  .tagline {
    font-size: 0.85rem;
  }
  
  .form-tabs {
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .form-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .input-group {
    margin-bottom: 1.2rem;
  }
  
  .form-input {
    padding: 0.8rem 0.9rem 0.8rem 2.8rem;
    font-size: 0.95rem;
  }
  
  .input-icon {
    font-size: 1rem;
    left: 0.9rem;
  }
  
  .toggle-password {
    font-size: 1rem;
    padding: 0.5rem;
  }
  
  .submit-button {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
  
  .social-login {
    gap: 0.5rem;
  }
  
  .social-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .social-btn i {
    font-size: 1.3rem;
  }
  
  .divider {
    margin: 1.5rem 0;
  }
  
  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .particle {
    width: 1px;
    height: 1px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .submit-button,
  .social-btn,
  .tab-button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .toggle-password {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Remove hover effects on touch */
  .submit-button:hover,
  .social-btn:hover,
  .tab-button:hover {
    transform: none;
  }
  
  .submit-button:active,
  .social-btn:active {
    transform: scale(0.98);
  }
}

/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--light-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Admin Info Banner */
.admin-info-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

.admin-info-banner i {
  color: var(--cyan);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.admin-info-banner div {
  flex: 1;
  color: #e0e7ff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-info-banner strong {
  color: var(--cyan);
  font-weight: 600;
}

/* Auth Messages */
.auth-message {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideDown 0.3s ease;
  font-size: 0.95rem;
}

.auth-message i {
  font-size: 1.5rem;
}

.auth-message.error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6b6b;
}

.auth-message.error i {
  color: #ff4444;
}

.auth-message.success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.auth-message.success i {
  color: #00ff88;
}

.auth-message.info {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
}

.auth-message.info i {
  color: #00d4ff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}
