/**
 * CTAuth Test App Styles
 * Using CTSentry brand colors
 */

:root {
  --primary: #0891b2; /* CTSentry cyan-600 */
  --primary-dark: #0e7490; /* cyan-700 */
  --bg: #f8fafc; /* slate-50 */
  --text: #1e293b; /* slate-800 */
  --text-secondary: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
  padding: 40px;
  text-align: center;
}

h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 10px 0;
}

button:hover {
  background-color: var(--primary-dark);
}

button:active {
  transform: scale(0.98);
}

.info {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  text-align: left;
}

.info p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.info p:last-child {
  margin-bottom: 0;
}

code {
  font-family: 'Courier New', monospace;
  background: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--primary);
}

.user-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 8px;
  text-align: left;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
}

dt {
  font-weight: 600;
  color: var(--text);
}

dd {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

footer {
  margin-top: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Loading spinner */
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

#loading p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Welcome header with profile picture */
.welcome-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.welcome-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
}

.welcome-header div {
  flex: 1;
}

.welcome-header h1,
.welcome-header p {
  text-align: left;
}

/* Authentication methods section */
.auth-methods {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 8px;
  text-align: left;
}

.auth-methods h2 {
  margin-bottom: 1.5rem;
}

.auth-method {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.auth-method:last-child {
  margin-bottom: 0;
}

.auth-method-header {
  margin-bottom: 0.5rem;
}

.auth-method-header strong {
  color: var(--primary);
  font-size: 1rem;
}

.auth-method-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-method-details > div:first-child {
  margin-bottom: 0.25rem;
}

.auth-method-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 24px;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    width: 100%;
  }

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

  .welcome-header div {
    text-align: center;
  }

  .welcome-header h1,
  .welcome-header p {
    text-align: center;
  }
}
