/* ===== ICO2026 Portal - Page-Specific Styles ===== */

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-box {
  width: 100%;
  max-width: 460px;
  background: var(--ico-bg-panel);
  border: 2px solid var(--ico-primary);
  padding: 48px 40px;
  position: relative;
  border-radius: 2px;
  clip-path: polygon(
    0 0,
    calc(100% - 30px) 0,
    100% 30px,
    100% 100%,
    30px 100%,
    0 calc(100% - 30px)
  );
  box-shadow:
    0 0 40px rgba(93, 120, 255, 0.2),
    0 0 80px rgba(93, 120, 255, 0.08),
    inset 0 0 40px rgba(93, 120, 255, 0.03);
  animation: loginPulse 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

@keyframes loginPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(93, 120, 255, 0.2),
      0 0 60px rgba(93, 120, 255, 0.05);
    border-color: var(--ico-primary);
  }
  50% {
    box-shadow:
      0 0 40px rgba(93, 120, 255, 0.35),
      0 0 80px rgba(93, 120, 255, 0.1),
      0 0 120px rgba(0, 217, 255, 0.05);
    border-color: var(--ico-primary-light);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-img {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 15px var(--ico-primary-glow));
  margin-bottom: 16px;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 15px var(--ico-primary-glow)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 0 25px var(--ico-primary-glow)) drop-shadow(0 0 40px rgba(0, 217, 255, 0.2)); }
}

.login-logo h1 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 6px;
}

.login-logo .tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ico-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-google {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(93, 120, 255, 0.15), rgba(0, 217, 255, 0.08));
  border: 2px solid var(--ico-primary);
  border-radius: 6px;
  color: var(--ico-primary-light);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--portal-transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-google:hover {
  background: linear-gradient(135deg, rgba(93, 120, 255, 0.25), rgba(0, 217, 255, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(93, 120, 255, 0.4);
}

.btn-google svg {
  width: 22px;
  height: 22px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--ico-text-muted);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ico-border-subtle);
}

.login-info {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ico-text-muted);
  line-height: 1.8;
  margin-top: 20px;
}

/* Corner decorations */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ico-accent);
  animation: cornerGlow 4s ease-in-out infinite;
}
.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; animation-delay: 0s; }
.corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; animation-delay: -1s; }
.corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; animation-delay: -2s; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; animation-delay: -3s; }

@keyframes cornerGlow {
  0%, 100% {
    border-color: var(--ico-accent);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
  }
  50% {
    border-color: var(--ico-primary-light);
    box-shadow: 0 0 15px rgba(93, 120, 255, 0.5);
  }
}

/* Email OTP Section */
.email-otp-section {
  margin-top: 8px;
}

.email-otp-section .form-input {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 2px;
  padding: 14px 16px;
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 6px;
  color: var(--ico-text-primary);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.email-otp-section .form-input:focus {
  border-color: var(--ico-primary);
  box-shadow:
    0 0 0 3px rgba(93, 120, 255, 0.15),
    0 0 20px rgba(93, 120, 255, 0.1),
    inset 0 0 20px rgba(93, 120, 255, 0.03);
  outline: none;
}

.email-otp-section .form-input::placeholder {
  color: var(--ico-text-muted);
  letter-spacing: 1px;
}

/* 6-digit OTP code input */
.otp-code-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.otp-digit {
  width: 46px;
  height: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ico-accent);
  background: rgba(5, 8, 16, 0.9);
  border: 2px solid var(--ico-border-subtle);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  caret-color: var(--ico-accent);
}

.otp-digit:focus {
  border-color: var(--ico-primary);
  box-shadow:
    0 0 15px rgba(93, 120, 255, 0.3),
    inset 0 0 10px rgba(93, 120, 255, 0.05);
  color: var(--ico-primary-light);
  text-shadow: 0 0 8px var(--ico-primary-glow);
}

.otp-digit.filled {
  border-color: var(--ico-accent);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
  color: var(--ico-accent);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

.btn-email-otp {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(93, 120, 255, 0.12), rgba(0, 217, 255, 0.06));
  border: 2px solid var(--ico-border-subtle);
  border-radius: 6px;
  color: var(--ico-text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-email-otp:hover {
  background: linear-gradient(135deg, rgba(93, 120, 255, 0.2), rgba(0, 217, 255, 0.1));
  border-color: var(--ico-primary);
  color: var(--ico-primary-light);
  box-shadow: 0 0 20px rgba(93, 120, 255, 0.2);
  transform: translateY(-1px);
}

.btn-email-otp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-verify {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 217, 255, 0.06));
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--ico-success);
}

.btn-verify:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.1));
  border-color: var(--ico-success);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
}

.otp-sent-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ico-success);
  margin-bottom: 16px;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 4px;
}

.otp-sent-info span {
  color: var(--ico-text-primary);
  font-weight: 600;
}

.btn-resend {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--ico-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--portal-transition);
}

.btn-resend:hover:not(:disabled) {
  color: var(--ico-primary-light);
}

.btn-resend:disabled {
  cursor: not-allowed;
}

.login-error {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ico-error);
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 4px;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.announcement-preview {
  padding: 16px 0;
  border-bottom: 1px solid rgba(93, 120, 255, 0.08);
}

.announcement-preview:last-child {
  border-bottom: none;
}

.announcement-preview .date {
  font-size: 0.7rem;
  color: var(--ico-text-muted);
  margin-bottom: 4px;
}

.announcement-preview .title {
  font-size: 0.9rem;
  color: var(--ico-text-primary);
  font-weight: 500;
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-section {
  margin-bottom: 32px;
}

.team-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ico-border-subtle);
}

.team-section-header svg {
  width: 22px;
  height: 22px;
  stroke: var(--ico-primary-light);
  fill: none;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px var(--ico-primary-glow));
}

.team-section-header h2 {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.member-card {
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: var(--portal-border-radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--portal-transition);
}

.member-card:hover {
  border-color: rgba(93, 120, 255, 0.5);
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.member-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--ico-accent);
  letter-spacing: 1px;
}

.member-remove-btn {
  background: none;
  border: none;
  color: var(--ico-text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--portal-transition);
}

.member-remove-btn:hover {
  color: var(--ico-error);
}

/* ============================================
   PAYMENT PAGE
   ============================================ */
.pricing-display {
  text-align: center;
  padding: 40px;
  margin-bottom: 32px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ico-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--ico-text-primary);
  margin-bottom: 8px;
}

.pricing-amount .currency {
  font-size: 1.5rem;
  color: var(--ico-primary-light);
  vertical-align: super;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--ico-text-muted);
}

.pricing-tiers-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.tier-card {
  padding: 16px;
  border: 1px solid var(--ico-border-subtle);
  border-radius: 6px;
  text-align: center;
}

.tier-card.active {
  border-color: var(--ico-primary);
  background: rgba(93, 120, 255, 0.08);
  box-shadow: var(--portal-glow-primary);
}

.tier-card .tier-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--ico-text-muted);
  margin-bottom: 6px;
}

.tier-card .tier-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ico-text-primary);
}

.tier-card .tier-dates {
  font-size: 0.7rem;
  color: var(--ico-text-muted);
  margin-top: 4px;
}

.tier-card.active .tier-name {
  color: var(--ico-primary-light);
}

.payment-status-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.payment-status-box.unpaid {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.payment-status-box.pending {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.payment-status-box.paid {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.paypal-section {
  text-align: center;
  padding: 24px;
}

.transaction-input-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ico-border-subtle);
}

/* ============================================
   ANNOUNCEMENTS PAGE
   ============================================ */
.announcement-item {
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: var(--portal-border-radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--portal-transition);
}

.announcement-item:hover {
  border-color: rgba(93, 120, 255, 0.5);
}

.announcement-item.pinned {
  border-color: var(--ico-gold);
  background: rgba(255, 215, 0, 0.03);
}

.announcement-item.urgent {
  border-color: var(--ico-error);
  background: rgba(255, 107, 107, 0.03);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.announcement-date {
  font-size: 0.75rem;
  color: var(--ico-text-muted);
}

.announcement-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ico-text-primary);
  margin-bottom: 8px;
}

.announcement-content {
  font-size: 0.9rem;
  color: var(--ico-text-secondary);
  line-height: 1.7;
}

.pin-icon {
  width: 14px;
  height: 14px;
  stroke: var(--ico-gold);
  fill: none;
  stroke-width: 2;
}

.announcement-item {
  cursor: pointer;
}

.expand-icon {
  width: 16px;
  height: 16px;
  stroke: var(--ico-text-muted);
  fill: none;
  stroke-width: 2;
  margin-left: auto;
  transition: transform var(--portal-transition);
  flex-shrink: 0;
}

.announcement-content {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--ico-border-subtle);
}

/* ============================================
   MATERIALS PAGE
   ============================================ */
.material-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: var(--portal-border-radius);
  margin-bottom: 12px;
  transition: all var(--portal-transition);
}

.material-item:hover {
  border-color: var(--ico-primary);
  background: rgba(93, 120, 255, 0.04);
}

.material-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(93, 120, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ico-primary-light);
  fill: none;
  stroke-width: 1.5;
}

.material-info {
  flex: 1;
}

.material-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ico-text-primary);
}

.material-desc {
  font-size: 0.8rem;
  color: var(--ico-text-muted);
  margin-top: 2px;
}

.material-download {
  color: var(--ico-accent);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.material-download svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   LOGISTICS PAGE
   ============================================ */
.logistics-content {
  padding: 24px;
}

.logistics-section {
  margin-bottom: 32px;
}

.logistics-section h2 {
  font-size: 1.2rem;
  color: var(--ico-primary-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ico-border-subtle);
}

.logistics-entry {
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: var(--portal-border-radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all var(--portal-transition);
}

.logistics-entry:hover {
  border-color: rgba(93, 120, 255, 0.5);
  box-shadow: var(--portal-glow-primary);
}

.logistics-entry h2 {
  font-size: 1.15rem;
  color: var(--ico-primary-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ico-border-subtle);
  letter-spacing: 1px;
}

.logistics-entry .markdown-content {
  margin-bottom: 12px;
}

.logistics-updated {
  font-size: 0.75rem;
  color: var(--ico-text-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(93, 120, 255, 0.06);
  font-style: italic;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: var(--portal-border-radius);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--ico-primary-light);
  text-shadow: 0 0 10px var(--ico-primary-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--ico-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1;
  max-width: 300px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

/* Admin form textarea for markdown editing */
.admin-editor {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ico-text-primary);
  background: rgba(5, 8, 16, 0.8);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 6px;
  resize: vertical;
  outline: none;
}

.admin-editor:focus {
  border-color: var(--ico-primary);
  box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.15);
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pricing-tiers-info {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-box {
    padding: 32px 24px;
  }
}
