﻿/* Lucid Poker Account Styles */
/* Modern design matching LoginView.axaml aesthetic */

:root {
  --primary-purple: #8b3a96;
  --dark-purple: #5c2261;
  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.5);
  --error-color: #ff4444;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0d0d 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 500px;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px var(--shadow-color);
}

/* Header Section */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.header-text .tagline {
  font-size: 15px;
  color: var(--text-dim);
}

/* Error Message */
.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--error-color);
  text-align: center;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #000000;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
}

.test-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.test-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.test-login-divider::before,
.test-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-color);
}

.field-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.text-field {
  height: 44px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 15px;
  padding: 0 14px;
}

.text-field:focus {
  border-color: var(--primary-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 58, 150, 0.18);
}

.test-login-btn {
  margin-top: 8px;
  background: var(--primary-purple);
  color: var(--text-primary);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Loading State */
.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(139, 58, 150, 0.2);
  border-top-color: var(--primary-purple);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

.loading-container p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 600px) {
  .card {
    padding: 32px 24px;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .header-text h1 {
    font-size: 24px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* Turnstile CAPTCHA */
#turnstile-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
  min-height: 65px;
}

#turnstile-container:empty {
  display: none;
}

/* Cardle adoption sign-in */
.cardle-adopt-page {
  background: #030304;
  color: #f0f0f4;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding: 0;
}

.cardle-adopt-page .container {
  max-width: 430px;
}

.cardle-adopt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 40px 48px;
  overflow: hidden;
  background: #1f1f29;
  border: 1px solid #252531;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.cardle-adopt-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cardle-adopt-close span,
.cardle-adopt-close span::after {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #aaaac0;
  content: "";
}

.cardle-adopt-close span {
  transform: rotate(45deg);
}

.cardle-adopt-close span::after {
  left: 0;
  top: 0;
  transform: rotate(90deg);
}

.cardle-adopt-close:hover span,
.cardle-adopt-close:hover span::after {
  background: #f0f0f4;
}

.cardle-adopt-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  color: #f0f0f4;
}

.cardle-adopt-logo img {
  width: 28px;
  height: 28px;
}

.cardle-adopt-logo span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.cardle-adopt-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: center;
}

.cardle-adopt-header h1 {
  margin: 0;
  color: #f0f0f4;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.cardle-adopt-header p {
  max-width: 280px;
  margin: 0;
  color: #8d8daa;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.cardle-adopt-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.cardle-adopt-perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.cardle-adopt-perk-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  overflow: hidden;
  background: #361439;
  border: 1px solid #5c2261;
  border-radius: 8px;
}

.cardle-adopt-perk-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #a564b8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cardle-adopt-perk-text {
  min-width: 0;
}

.cardle-adopt-perk-text h2 {
  margin: 0;
  color: #f0f0f4;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.cardle-adopt-perk-text p {
  margin: 1px 0 0;
  color: #717193;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.cardle-adopt-page .button-group {
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

.cardle-adopt-page .btn {
  height: 40px;
  gap: 8px;
  padding: 0 12px;
  color: #361439;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10000px;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.18);
}

.cardle-adopt-page .btn:hover:not(:disabled) {
  transform: none;
  background: #f7f1f9;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
}

.cardle-adopt-page .btn:focus-visible {
  outline: none;
  box-shadow:
    0 4px 7px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(137, 60, 149, 0.45);
}

.cardle-adopt-page .btn-icon {
  width: 20px;
  height: 20px;
}

.cardle-adopt-page .btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.cardle-adopt-page .spinner {
  width: 18px;
  height: 18px;
}

.cardle-adopt-page .error-message {
  width: 100%;
  margin-bottom: 0;
  color: #ff8a8a;
  background: rgba(170, 41, 41, 0.14);
  border-color: rgba(170, 41, 41, 0.8);
}

.cardle-adopt-page #turnstile-container {
  min-height: 0;
  margin-bottom: 0;
}

.cardle-adopt-page #turnstile-container:empty {
  display: none;
}

.cardle-adopt-page .test-login-form {
  width: 100%;
  margin-top: 0;
}

.cardle-adopt-page .test-login-divider {
  color: #717193;
}

.cardle-adopt-page .cardle-adopt-terms {
  width: 100%;
  margin: 0;
  color: #717193;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.cardle-adopt-terms a {
  color: #aaaac0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cardle-adopt-terms a:hover {
  color: #f0f0f4;
}

@media (max-width: 480px) {
  .cardle-adopt-page {
    padding: 12px;
  }

  .cardle-adopt-card {
    padding: 40px 28px;
    border-radius: 22px;
  }

  .cardle-adopt-header h1 {
    font-size: 22px;
  }

  .cardle-adopt-header p {
    font-size: 15px;
  }
}

