/* ==============================================================================
   FITPARTH — AK FITNESS UNISEX GYM
   Public Responsive Mobile Web Check-in Portal
   ============================================================================== */

:root {
  --bg-color: #0b0c10;
  --surface-color: #151821;
  --surface-elevated: #1e2230;
  --border-color: rgba(229, 169, 59, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --primary-gold: #e5a93b;
  --primary-hover: #f3be5c;
  --text-primary: #f5f6fa;
  --text-secondary: #9ba1b5;
  --accent-green: #2ecc71;
  --danger-red: #e74c3c;
  --warning-amber: #f39c12;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 169, 59, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* Glassmorphism Card */
.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 169, 59, 0.06);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* Header & Branding */
.header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #1f2330 0%, #11131a 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 169, 59, 0.2);
}

.logo-badge svg {
  width: 36px;
  height: 36px;
  fill: var(--primary-gold);
}

.gym-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gym-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.3);
  color: var(--primary-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Entrance Token Indicator */
.entrance-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-green);
  margin-top: 10px;
}

.entrance-status.warning {
  color: var(--warning-amber);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--primary-gold);
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 52px;
  background: var(--surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px 0 46px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.15);
  background: #232838;
}

.form-input::placeholder {
  color: #5d6379;
  font-weight: 400;
}

.toggle-pwd {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
}

.toggle-pwd svg {
  width: 18px;
  height: 18px;
}

/* Primary Submit Button */
.btn-submit {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #caa038 100%);
  color: #0b0c10;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(229, 169, 59, 0.35);
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229, 169, 59, 0.45);
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feedback Result Banners */
.result-banner {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-banner.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.result-banner.error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff6b6b;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.result-title {
  font-size: 15px;
  font-weight: 700;
}

.result-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

.result-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Footer Details */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-secondary);
}

.footer a {
  color: var(--primary-gold);
  text-decoration: none;
}

.footer-meta {
  margin-top: 6px;
  font-size: 10px;
  color: #6c7287;
}

/* Small phone responsiveness */
@media (max-width: 360px) {
  .card {
    padding: 22px 18px;
  }
  .gym-title {
    font-size: 18px;
  }
  .form-input {
    height: 48px;
    font-size: 15px;
  }
  .btn-submit {
    height: 48px;
    font-size: 14px;
  }
}
