/* Reset & Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Orbitron", sans-serif;
  position: relative;
  color: #fff;
}

/* Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(26, 26, 27, 0.92),
    rgba(0, 0, 0, 0.92)
  );
  z-index: -1;
}

/* Loading */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    opacity: 1;
    transition: all 0.8s ease-in-out;
}

.fade-out {
    opacity: 0;
    transform: scale(1.1); /* Sẽ phóng to nhẹ khi fade out */
    pointer-events: none;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8));
    overflow: hidden;
}

.loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    transition: all 0.5s ease-in-out;
}

.fade-out .loading-content {
    transform: scale(0.95); /* Thu nhỏ nội dung khi fade out */
    opacity: 0;
}

.glitch-text {
    color: #0f0;
    font-size: 32px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 30px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    color: #0ff;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    color: #f0f;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

.loading-progress-container {
    width: 300px;
    height: 20px;
    background: rgba(0,255,0,0.1);
    border: 1px solid #0f0;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: #0f0;
    position: relative;
    transition: width 0.1s linear;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading-shine 1s infinite;
}

.loading-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-shadow: 0 0 5px #0f0;
}

.terminal-text {
    color: #0f0;
    font-size: 14px;
    text-align: left;
    margin-top: 20px;
    height: 120px;
    overflow: hidden;
}

@keyframes glitch-1 {
    0% { transform: none; opacity: 1; }
    7% { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10% { transform: none; opacity: 1; }
    27% { transform: none; opacity: 1; }
    30% { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35% { transform: none; opacity: 1; }
}

@keyframes glitch-2 {
    0% { transform: none; opacity: 0.25; }
    7% { transform: translate(-2px, 3px); opacity: 0.5; }
    10% { transform: none; opacity: 0.25; }
    27% { transform: none; opacity: 0.25; }
    30% { transform: translate(-5px, -2px); opacity: 0.5; }
    35% { transform: none; opacity: 0.25; }
}

@keyframes loading-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Main Content */
.content {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
  animation: neonFlicker 1.5s infinite alternate;
}

.description {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Support Section Styles */
.support-section {
  margin: 2rem auto;
  max-width: 800px;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.589),
    rgba(0, 0, 0, 0.589)
  );
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.support-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  padding: 15px;
  border-radius: 15px;
  /* background: linear-gradient(45deg, rgba(0, 136, 204, 0.2), rgba(0, 255, 255, 0.1)); */
  /* border: 1px solid rgba(0, 255, 255, 0.1); */
  position: relative;
  overflow: hidden;
}

.support-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.2),
    transparent
  );
  /* animation: shine 3s infinite; */
}

.support-title i {
  color: #0088cc;
  font-size: 32px;
  margin-right: 10px;
  /* animation: bounce 2s infinite; */
}

.support-list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.support-item {
  flex: 1;
  max-width: 200px;
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.support-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.support-item:hover::before {
  transform: translateX(100%);
}

.support-item:hover {
  transform: translateY(-5px);
  border-color: #0088cc;
  box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.support-item i {
  color: #0088cc;
  font-size: 24px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.support-item:hover i {
  transform: scale(1.2);
}

.status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 10px;
  position: relative;
}

.status.online {
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

.status.online::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #00ff00;
  animation: ripple 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .support-list {
    flex-direction: column;
    align-items: center;
  }

  /* .support-item {
        width: 100%;
        max-width: 280px;
    }

    .support-title {
        font-size: 24px;
        padding: 12px;
    }

    .support-title i {
        font-size: 28px;
    } */
}

@media (max-width: 480px) {
  /* .support-title {
        font-size: 20px;
    }

    .support-item {
        padding: 12px 20px;
    }

    .support-item i {
        font-size: 20px;
    } */
}

/* Hack Section */
.hack-section {
  margin-top: 2rem;
}

.hack-box {
  padding: 20px;
}

.hack-title {
  color: #fff;
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  position: relative;
}

/* Grid Layout */
.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
}

.col-game {
  padding: 0;
}

/* Game Tab Styles */
.game-tab {
  background: rgba(0, 20, 40, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.game-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.game-tab:hover::before {
  left: 100%;
}

.game-tab.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-tab:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.game-tab.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: #0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.game-tab.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Game Logo */
.game-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
  transition: transform 0.3s ease;
}

.game-tab:hover:not(.disabled) .game-logo {
  transform: scale(1.1);
}

/* Game Name */
.game-name {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Game Status */
.game-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.game-online {
  background: rgba(0, 255, 0, 0.15);
  color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.game-offline {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
  .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .game-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hack-title {
    font-size: 24px;
  }

  .game-tab {
    padding: 10px;
  }

  .game-logo {
    width: 60px;
    height: 60px;
  }

  .game-name {
    font-size: 14px;
  }

  .game-status {
    padding: 4px 12px;
    font-size: 12px;
  }
}

/* Login Form */
.login-form {
  margin-top: 30px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.login-form.show {
  opacity: 1;
  transform: translateY(0);
}

.login-container {
  background: rgba(0, 20, 40, 0.95);
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
}

.login-title {
  color: #fff;
  font-size: 24px;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #0ff;
}

.login-subtitle {
  color: #aaa;
  text-align: center;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.login-subtitle img {
  width: 60px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin: 0 5px;
}

/* Input Groups */
.form-group {
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.custom-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #fff;
  padding: 12px 45px 12px 15px;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  outline: none;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #0ff;
}

/* Login Button */
.login-btn {
  width: 100%;
  background: linear-gradient(45deg, #0088cc, #00ffff);
  border: none;
  color: #000;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 20px;
  }

  .login-title {
    font-size: 20px;
  }

  .custom-input {
    font-size: 14px;
    padding: 10px 40px 10px 12px;
  }

  .login-btn {
    font-size: 14px;
    padding: 10px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .login-subtitle img {
    width: 50px;
    height: 25px;
  }
}

.register-link {
  margin-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.neon-link {
  color: #0ff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.neon-link:hover {
  color: #fff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

.neon-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #0ff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px #0ff;
}

.neon-link:hover::after {
  transform: scaleX(1);
}

/* Carousel Container */
.carousel-container {
    margin-top: 50px !important;
    width: 100%;
    max-width: 1200px;
    height: 320px;  /* Chiều cao phù hợp với nội dung */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 255, 0.733);
    padding: 20px;
}

.carousel-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 20px;
    gap: 20px;
    width: fit-content;
    animation: scrollX 40s linear infinite;
}

/* Game Items */
.game-item {
    min-width: 280px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 20, 40, 0.6);
}

.game-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.game-item:hover .game-image img {
    transform: scale(1.2);
}

/* Game Info */
.game-info {
    padding: 15px;
}

.game-name {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Progress Bar */
.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #330075, #ff00f2);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s linear infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Online Users */
.online-users {
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.online-users i {
    color: #00ff00;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 8));  /* (width 280px + gap 20px) * số items (8) */
    }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        padding: 15px;
    }
    .game-item {
        min-width: 240px;
    }
    .game-image {
        height: 140px;
    }
    .game-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 10px;
    }
    .game-item {
        min-width: 200px;
    }
    .game-image {
        height: 120px;
    }
}

/* Footer Styles */
.footer {
  width: 100%;
  padding: 15px 0;
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 162, 255, 0.1);
}

.footer-content {
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.footer .copyright {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer i {
  color: #00ff00;
  font-size: 12px;
  animation: iconGlow 1.5s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  from {
    opacity: 0.5;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 10px 0;
    margin-top: 20px;
  }

  .footer-content {
    font-size: 12px;
  }
}

.matrix-text {
  position: relative;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  font-family: monospace;
  display: inline-block;
  animation: iconGlow 1.5s ease-in-out infinite alternate;
}

.matrix-text .char {
  position: relative;
}

.matrix-text .matrix-effect {
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
}

/* NOTIFE  */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    min-width: 300px;
    transform: translateX(120%);
    animation: slideIn 0.5s forwards, glow 2s infinite;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

.notification .game-name {
    color: #0ff;
    font-weight: bold;
}

.notification .percentage {
    color: #ff0;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
}

@keyframes shine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* INPUT CAPCHA */
.captcha-group {
    position: relative;
    margin-bottom: 15px;
}

.captcha-image {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    border-radius: 4px;
    cursor: pointer;
}

.refresh-captcha {
    cursor: pointer;
}

.refresh-captcha i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.refresh-captcha:hover i {
    transform: rotate(180deg);
}

/* POPUP VALIDATE */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: rgba(0, 20, 40, 0.95);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-icon {
    color: #ff4444;
    font-size: 40px;
    margin-bottom: 15px;
}

.popup-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.popup-message {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.popup-close {
    background: linear-gradient(45deg, #0088cc, #00ffff);
    border: none;
    color: #000;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.login-success-content {
    background: rgba(0, 20, 40, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

.login-success-icon {
    color: #00ff00;
    font-size: 50px;
    margin-bottom: 20px;
    animation: iconScale 0.5s ease;
}

.login-success-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-success-message {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.login-loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.login-loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0088cc, #00ffff);
    animation: loginProgress 2s linear forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes iconScale {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes loginProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Register Form Styles */
.register-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.register-container {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    border: 1px solid #00ff00;
    animation: fadeIn 0.3s ease-in-out;
}

.register-title {
    color: #00ff00;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.register-subtitle {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00ff00, #00cc00);
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-btn:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #fff;
    font-size: 14px;
}

.login-link a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #00cc00;
    text-decoration: underline;
}