/* =============================
   Global Reset & Base Styles
   ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a; /* dark background */
  color: #e5e5e5;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================
   Container & Card
   ============================= */
.cf-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.cf-card {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: fadeIn 0.8s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================
   Logo
   ============================= */
.cf-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* white effect */
  opacity: 0.85;
}

/* =============================
   Headings & Text
   ============================= */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.cf-subtext {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #b5b5b5;
}

.cf-subtext strong {
  color: #ff6600; /* brand orange style */
}

.cf-wait {
  font-size: 0.95rem;
  margin-top: 20px;
  color: #9a9a9a;
}

.cf-wait-small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* =============================
   Loading Section & Spinner
   ============================= */
.loading-section {
  margin: 25px 0;
}

.spinner {
  margin: 0 auto 15px auto;
  border: 4px solid #2a2a2a;
  border-top: 4px solid #ff6600;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-section p {
  font-size: 0.95rem;
  color: #bbb;
  margin: 4px 0;
}

.countdown {
  font-size: 0.9rem;
  color: #ff6600;
  margin-top: 8px;
  font-weight: 600;
}

/* =============================
   Success Message
   ============================= */
.success-message {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #1f1f1f;
  border: 1px solid #2f2f2f;
  animation: fadeIn 0.5s ease-in-out;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.success-message h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #34d399; /* green for success */
}

/* =============================
   Footer
   ============================= */
.cf-footer {
  margin-top: 35px;
  font-size: 0.8rem;
  color: #7a7a7a;
}

.cf-footer .cf-brand {
  color: #ff6600;
  font-weight: 600;
}

.cf-footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s;
}

.cf-footer a:hover {
  color: #ff6600;
}
