/* Login Page */

/* Base styles */
body {
  font-family: var(--spt-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background-color: var(--spt-bg, #f4f6f7);
  color: var(--spt-text, #1a2b3c);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Login wrapper - full page centered */
.login-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  background-color: var(--spt-bg, #f4f6f7);
}

/* Login card */
.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Logo section */
.login-logo-section {
  margin-bottom: 32px;
}

.login-logo {
  width: 256px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.login-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--spt-teal, #004c54);
  margin: 0 0 8px 0;
  letter-spacing: -0.025em;
}

.login-subtitle {
  font-size: 14px;
  color: var(--spt-text-muted, #6b7a8d);
  margin: 0;
}

/* Google OAuth button */
.login-google-btn {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--spt-bg-white, #ffffff);
  color: var(--spt-text, #1a2b3c);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--spt-border, #dfe3e8);
  border-radius: var(--spt-radius-button, 8px);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-google-btn:hover {
  background-color: var(--spt-bg, #f4f6f7);
  border-color: var(--spt-teal, #004c54);
}

.login-google-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 76, 84, 0.1);
}

/* Footer */
.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--spt-text-muted, #6b7a8d);
}

.login-footer strong {
  color: var(--spt-text-secondary, #4a5c6d);
}

/* Notice (success) */
.login-notice {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--spt-radius-button, 8px);
  color: var(--spt-green, #0d9f6e);
  font-size: 14px;
}

/* Alert */
.login-alert {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--spt-radius-button, 8px);
  color: var(--spt-error, #EF4444);
  font-size: 14px;
}

/* Confidentiality page */
.conf-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  background-color: var(--spt-bg, #f4f6f7);
}

.conf-card {
  width: 100%;
  max-width: 640px;
  background: var(--spt-bg-white, #ffffff);
  border-radius: var(--spt-radius-card, 12px);
  box-shadow: var(--spt-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.06));
  overflow: hidden;
}

.conf-accent-bar {
  height: 4px;
  background: linear-gradient(to right, var(--spt-teal, #004c54), var(--spt-mint, #1db99a));
}

.conf-body {
  padding: 40px;
}

.conf-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 76, 84, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spt-teal, #004c54);
}

.conf-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--spt-text, #1a2b3c);
  margin: 0 0 8px;
}

.conf-hint {
  text-align: center;
  font-size: 13px;
  color: var(--spt-text-muted, #6b7a8d);
  margin: 0 0 24px;
}

.conf-text {
  background: var(--spt-bg, #f4f6f7);
  border-radius: var(--spt-radius-button, 8px);
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--spt-text-secondary, #4a5c6d);
  margin-bottom: 32px;
}

.conf-text ul {
  margin: 12px 0;
  padding-left: 20px;
}

.conf-text li {
  margin-bottom: 8px;
}

.conf-actions {
  text-align: center;
}

.conf-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--spt-teal, #004c54);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--spt-radius-button, 8px);
  cursor: pointer;
  transition: background 0.15s ease;
}

.conf-btn:hover {
  background: #003a40;
}

/* Fun Fact page */
.ff-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  background-color: var(--spt-bg, #f4f6f7);
}

.ff-card {
  width: 100%;
  max-width: 480px;
  background: var(--spt-bg-white, #ffffff);
  border-radius: var(--spt-radius-card, 12px);
  box-shadow: var(--spt-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  text-align: center;
}

.ff-accent-bar {
  height: 4px;
  background: linear-gradient(to right, var(--spt-teal, #004c54), var(--spt-mint, #1db99a));
}

.ff-body {
  padding: 48px 40px;
}

.ff-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spt-teal, #004c54);
  margin-bottom: 24px;
}

.ff-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--spt-text, #1a2b3c);
  margin-bottom: 40px;
}

.ff-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--spt-teal, #004c54);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--spt-radius-button, 8px);
  transition: background 0.15s ease;
}

.ff-btn:hover {
  background: #003a40;
  color: #fff;
}

/* Loading animation */
.loading-text {
  margin-top: 20px;
  text-align: center;
  margin-bottom: -15px;
  color: var(--spt-text-muted, #6b7a8d);
}

.lds-ellipsis {
  color: var(--spt-teal, #004c54);
}

.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}

.lds-ellipsis {
  position: relative;
  width: 80px;
  height: 80px;
  margin: auto;
}

.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes lds-ellipsis3 {
  0% { transform: scale(1); }
  100% { transform: scale(0); }
}

@keyframes lds-ellipsis2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(24px, 0); }
}

/* Responsive behavior */
@media (max-width: 480px) {
  .login-logo {
    width: 180px;
    height: auto;
  }

  .login-title {
    font-size: 32px;
  }
}

/* Pagination styles */
.pagination-view {
  display: flex;
  justify-content: center;
  margin: 40px auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--spt-text-secondary, #4a5c6d);
  border: 1px solid var(--spt-border, #dfe3e8);
  border-radius: var(--spt-radius-button, 8px);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pagination .current {
  background: var(--spt-teal, #004c54);
  color: white;
  border-color: var(--spt-teal, #004c54);
}

.pagination a:hover {
  background: var(--spt-bg, #f4f6f7);
  border-color: var(--spt-teal, #004c54);
}
