html,
body {
  background-color: #1a0033;

  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 100%; */
  overflow: hidden;
}
.main-container {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  background: url("/static/image/bg.jpg") no-repeat center center;
  background-size: cover;
  height:100%;
  /* min-height: 100vh; */
  overflow: hidden;
}

@media (min-width: 769px) {
  body {
    background-image: none;
  }

  .main-container {
    width: 450px !important;
    max-width: 500px !important;
    margin: 20px auto !important;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 40px);

    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .cta-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
  }
}

.casino-title {
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  from {
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #00ffff;
  }

  to {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
}

.download-btn,
.register-btn {
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  padding: 25px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
  width: 180px;
  height: 60px;

  text-indent: -9999px;
  overflow: hidden;
  display: inline-block;
  box-sizing: border-box;
}

.download-btn {
  background-image: url("/static/image/download.png");
}

.register-btn {
  background-image: url("/static/image/register.png");
}

.download-btn:hover,
.register-btn:hover {
  transform: translateY(-5px);
}

.register-box,
#successModal {
  max-width: 480px;
  width: calc(100% - 80px);
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
  z-index: 1000;
  opacity: 1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.register-box {
  background-color: #f7f7f7;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 450px !important;
  max-width: none !important;
}

.form-title {
  color: #333;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
}

.layui-form-item {
  margin-bottom: 15px;
}

.input-label {
  color: #333;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 5px;
  text-align: left;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .layui-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0a0a0;
  font-size: 18px;
}

.layui-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 10px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
}

.layui-input::placeholder {
  color: #ccc;
}

.password-field .layui-icon {
  position: absolute;
}

.password-field .toggle-password {
  left: auto;
  right: 12px;
  cursor: pointer;
  z-index: 1;
}

.verify-code-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verify-code-input-group {
  flex-grow: 1;
}

.verify-code-input {
  padding-right: 10px;
}

.captcha-img-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.captcha-img {
  width: 100px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.refresh-captcha {
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.layui-btn-submit {
  width: 100%;
  background-color: #007bff;
  border-radius: 12px;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.layui-btn-submit:hover {
  background-color: #0056b3;
}

.info-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.info-table td {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.info-table td:first-child {
  color: #666;
  font-weight: 500;
  width: 35%;
}

.info-table td:last-child {
  color: #222;
  font-weight: 600;
}

.security-note {
  color: #e74c3c;
  font-size: 13px;
  text-align: center;
  margin-top: 15px;
}

#successModal {
  max-width: 420px;
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

#successModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

#successModal .modal-header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

#successModal .close-btn {
  position: static;
  font-size: 24px;
  color: #999;
}

#successModal .modal-body {
  padding: 0;
}

#successModal .info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#successModal .info-table tr {
  border-bottom: 1px solid #eee;
}

#successModal .info-table td {
  padding: 10px 0;
  text-align: left;
}

#successModal .info-table td:first-child {
  width: 40%;
  font-weight: bold;
  color: #666;
}

#successModal .info-table td:last-child {
  color: #333;
}

#successModal .security-note {
  font-size: 14px;
  color: #e74c3c;
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

#successModal .modal-footer {
  text-align: center;
  margin-top: 20px;
}

#successModal .success-download-btn {
  width: 100%;
  height: 50px;
  padding: 0;
  text-indent: 0;
  border-radius: 12px;
  background-image: none;
  background-color: #00c6ff;
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-size: 16px;
  font-weight: bold;
}

#successModal .success-download-btn a {
  display: block;
  width: 100%;
  line-height: 50px;
  color: inherit;
  text-decoration: none;
}

.error-modal .layui-layer-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 0;
}

.error-modal-container {
  text-align: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.error-modal-container.show {
  opacity: 1;
  transform: translateY(0);
}

.error-icon {
  width: 80px;
  height: 80px;
  background: #fff2f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.error-icon i {
  font-size: 40px;
  color: #f56c6c;
}

.error-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.error-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .register-box {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    transform: none !important;
    border-radius: 0 !important;
    position: fixed;
    padding: 20px;
    box-sizing: border-box;
    max-width: none !important;
    overflow-y: auto !important;
  }
  .cta-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 20px 1%;
    box-sizing: border-box;
    z-index: 10;
  }

  .main-container {
    width: 100%;
    /*background: url("/static/image/bg.jpg") no-repeat center center;*/
    background-size: 100% 100%;
    /* height: 400px; */
    overflow: hidden;
  }
}
