/* ============================================================================ 
   Verefa ID Site — Premium Fintech Theme
   Colors: 
     Primary Blue  = #005DE0
     Deep Navy     = #001431
     Accent Gold   = #FFD337
     Absolute White/Black
============================================================================ */

/* --- Base Layout --- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at top right, #00265c, #001431 60%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* --- Container --- */
.idsite-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  min-height: 90vh;
  padding: 40px 20px;
  box-sizing: border-box;
}


/* --- Card Glassmorphism --- */
.idsite-card {
  background: rgba(255, 255, 255, 0.05); /* subtle light */
  backdrop-filter: blur(25px);           /* glass blur effect */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 50px 30px 40px 30px; /* top padding a bit larger */
  text-align: center;
  transition: all 0.3s ease;
}

.idsite-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

/* --- QR Canvas Styling --- */
#qrCanvas {
  display: block;
  margin: 30px auto;          /* horizontally centered */
  width: 160px !important;    /* smaller, fits nicely */
  height: 160px !important;
  padding: 10px;              /* inner spacing around QR */
  border-radius: 16px;        /* subtle rounded corners */
  background: rgba(255,255,255,0.1); /* light translucent bg */
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}


/* --- Branding --- */
.idsite-logo {
  width: 40%;
  margin-bottom: 25px;
}

.idsite-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.idsite-subtitle {
  font-size: 1rem;
  color: #c9d3e7;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- Form --- */
.idsite-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.idsite-input {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.idsite-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.idsite-input:focus {
  border-color: #FFD337;
  box-shadow: 0 0 0 3px rgba(255, 211, 55, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Button --- */
.idsite-button {
  background: linear-gradient(90deg, #005DE0, #0073ff);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.idsite-button:hover {
  background: linear-gradient(90deg, #0073ff, #005DE0);
}

.idsite-button:active {
  transform: scale(0.98);
}

.idsite-success {
  color: #FFD337;
  font-weight: 500;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

/* --- Messages --- */
.idsite-message {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.idsite-message.success {
  background: rgba(0, 93, 224, 0.1);
  color: #005de0;
  border: 1px solid #005de0;
}

.idsite-message.error {
  background: rgba(255, 0, 0, 0.08);
  color: #a40000;
  border: 1px solid #ff4d4d;
}

.idsite-message.info {
  background: rgba(0, 20, 49, 0.05);
  color: #001431;
  border: 1px solid rgba(0, 20, 49, 0.1);
}

/* --- Spinner inside button --- */
.idsite-spinner {
  margin-left: 8px;
  animation: spin 1s linear infinite;
}



@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.idsite-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Footer --- */
.idsite-footer {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .idsite-card {
    padding: 30px 20px;
  }

  .idsite-title {
    font-size: 1.6rem;
  }

  .idsite-subtitle {
    font-size: 0.95rem;
  }
}
