/* index.css - Main styles for index.php */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: #000000;
  color: #00ff41;
  min-height: 100vh;
  overflow: auto;
  position: relative;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 10;
  filter: brightness(0.95) contrast(1.1) saturate(1.2);
}

/* Glass overlay for better text visibility */
.glass-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 5, 2, 0.83) 0%,
    rgba(0, 10, 4, 0.80) 50%,
    rgba(0, 5, 2, 0.92) 100%
  );
  backdrop-filter: blur(1.5px);
  z-index: -1;
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: #00ff41;
  text-shadow: 
    0 0 10px #00ff41,
    0 0 20px #00ff41,
    0 0 30px #00ff41;
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
  font-size: 1.2rem;
  color: #00ff80;
  letter-spacing: 3px;
  margin-bottom: 5px;
  text-shadow: 0 0 5px rgba(0, 255, 128, 0.7);
}

/* Glassy Login box */
.login-box {
  background: rgba(0, 30, 10, 0.65);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: 20px;
  padding: 50px 40px;
  width: 100%;
  max-width: 500px;
  backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass effect overlay on login box */
.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.login-content {
  position: relative;
  z-index: 1;
}

.login-box h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #00ff80;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  text-shadow: 0 0 15px rgba(0, 255, 128, 0.7);
  font-weight: 700;
}

/* Glassy Form group */
.form-group {
  margin-bottom: 35px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #00ff80;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.5);
  font-weight: 600;
}

/* Glassy input field */
.form-group input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(0, 40, 15, 0.7);
  border: 1px solid rgba(0, 255, 65, 0.5);
  border-radius: 12px;
  color: #00ff41;
  font-size: 1.2rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 255, 65, 0.2);
}

.form-group input::placeholder {
  color: rgba(0, 255, 65, 0.6);
  font-style: italic;
}

.form-group input:focus {
  outline: none;
  background: rgba(0, 50, 20, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.8);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(0, 255, 65, 0.4),
    0 4px 20px rgba(0, 255, 65, 0.3);
}

/* Password Only Access Section */
.password-access-section {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 30, 10, 0.3);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.password-access-btn {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.15) 0%,
    rgba(0, 200, 50, 0.15) 100%
  );
  border: 2px solid rgba(0, 255, 65, 0.6);
  border-radius: 12px;
  padding: 18px 30px;
  color: #00ff41;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

.password-access-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.25) 0%,
    rgba(0, 220, 55, 0.25) 100%
  );
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(0, 255, 65, 0.4),
    inset 0 0 20px rgba(0, 255, 65, 0.2);
  border-color: #00ff41;
}

.password-access-btn:active {
  transform: translateY(1px);
}

.access-info {
  margin-top: 10px;
  color: #00ff80;
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(0, 255, 128, 0.7);
}

/* Glassy Submit button */
.submit-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.9) 0%,
    rgba(0, 200, 50, 0.9) 100%
  );
  border: none;
  border-radius: 12px;
  color: #001a06;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  box-shadow: 
    0 8px 25px rgba(0, 255, 65, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(0, 255, 65, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 1) 0%,
    rgba(0, 220, 55, 1) 100%
  );
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 
    0 5px 20px rgba(0, 255, 65, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 
    0 5px 15px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.submit-btn .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 26, 6, 0.3);
  border-radius: 50%;
  border-top-color: #001a06;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

/* Submit btn Icon CSS */
.submit-btn i {
  margin-right: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: scale(1.2);
}

/* Secondary - Create Account button */
.create-btn {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.15) 0%,
    rgba(0, 200, 50, 0.15) 100%
  );
  border: 2px solid rgba(0, 255, 65, 0.6);
  border-radius: 12px;
  color: #00ff41;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 6px 18px rgba(0, 255, 65, 0.25),
    inset 0 0 15px rgba(0, 255, 65, 0.1);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

/* Icon inside Create Account button */
.create-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* Hover animation */
.create-btn:hover i {
  transform: scale(1.25);
}

/* Hover effect */
.create-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.25) 0%,
    rgba(0, 220, 55, 0.25) 100%
  );
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 255, 65, 0.45),
    inset 0 0 20px rgba(0, 255, 65, 0.2);
  text-shadow: 0 0 14px rgba(0, 255, 65, 1);
}

/* Click */
.create-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 5px 15px rgba(0, 255, 65, 0.3),
    inset 0 0 10px rgba(0, 255, 65, 0.15);
}

/* Optional subtle shine */
.create-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 65, 0.35),
    transparent
  );
  transition: left 0.8s ease;
}

.create-btn:hover::before {
  left: 100%;
}

/* Glassy Result messages */
.result {
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  display: none;
  animation: fadeIn 0.5s ease;
  backdrop-filter: blur(10px);
  position: relative;
  border: 1px solid transparent;
}

.result.success {
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid rgba(0, 255, 65, 0.4);
  color: #00ff41;
  display: block;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 20px rgba(0, 255, 65, 0.2);
}

.result.error {
  background: rgba(255, 0, 65, 0.15);
  border: 1px solid rgba(255, 0, 65, 0.4);
  color: #ff0041;
  display: block;
  text-shadow: 0 0 10px rgba(255, 0, 65, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 20px rgba(255, 0, 65, 0.2);
}

.result.warning {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  display: block;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 20px rgba(255, 215, 0, 0.2);
}

/* Glassy Contact info */
.contact-info {
  text-align: center;
  margin-top: 35px;
  padding: 20px;
  background: rgba(0, 30, 10, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 15px rgba(0, 255, 65, 0.15);
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: #00ff80;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.7);
  position: relative;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  text-shadow: 0 0 20px rgba(0, 255, 128, 1);
  text-decoration: none;
}

/* Glassy Contact Telegram  */
.telegram-btn {
  background: rgba(0,40,0,0.3);
  border: 2px solid #00ff41;
  box-shadow: 0 0 10px #00ff41 inset, 0 0 15px rgba(0,255,65,0.3);
  border-radius: 12px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  margin-top: 10px;
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px #00ff80 inset, 0 0 30px #00ff80;
  color: #00ff80;
}

.telegram-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.telegram-btn:hover i {
  transform: scale(1.2);
}

/* Glassy Footer */
.footer {
  position: absolute;
  bottom: -42px;
  text-align: center;
  width: 100%;
  color: #00ff80;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.7);
  padding: 0 20px;
}

/* Animations */
@keyframes glow {
  from {
    text-shadow: 
      0 0 10px #00ff41,
      0 0 20px #00ff41,
      0 0 30px #00ff41;
  }
  to {
    text-shadow: 
      0 0 15px #00ff41,
      0 0 25px #00ff41,
      0 0 35px #00ff41,
      0 0 45px #00ff41;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video optimization for different devices */
@media (orientation: portrait) {
  .video-background video {
    object-fit: cover;
    width: 130%;
    height: 100%;
  }
}

@media (orientation: landscape) {
  .video-background video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
    letter-spacing: 5px;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  .login-box {
    padding: 35px 25px;
    margin: 0 10px;
    max-width: 90%;
  }
  
  .login-box h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
  }
  
  .form-group input {
    padding: 16px;
    font-size: 1.1rem;
  }
  
  .submit-btn {
    padding: 18px;
    font-size: 1.2rem;
  }
  
  .video-background video {
    opacity: 1000;
  }
  
  .glass-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 5, 2, 0.70) 0%,
      rgba(0, 10, 4, 0.60) 50%,
      rgba(0, 5, 2, 0.85) 100%
    );
  }
  
  .footer {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    padding: 20px;
  }
  
  .container {
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: 100vh;
  }
}

@media (max-width: 1000px) {
  .title {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .container {
    padding: 15px;
  }
  
  .login-box {
    padding: 30px 20px;
    border-radius: 16px;
  }
  
  .login-box h2 {
    font-size: 1.4rem;
  }
  
  .form-group input {
    padding: 14px;
    font-size: 1rem;
  }
  
  .submit-btn {
    padding: 16px;
    font-size: 1.1rem;
  }
  
  .video-background video {
    opacity: 1000;
  }
}

/* Small height devices */
@media (max-height: 700px) {
  .header {
    margin-bottom: 20px;
  }
  
  .login-box {
    padding: 30px 25px;
  }
  
  .login-box h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
  
  .contact-info {
    margin-top: 25px;
    padding: 15px;
  }
  
  .footer {
    position: relative;
    bottom: auto;
    margin-top: 25px;
  }
}

/* Prevent horizontal scroll on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}