/**
 * FormBeep Onboarding Styles
 * Monochrome, minimal, businessy design
 */

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

/* Typography */
body {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

code {
    font-family: 'Courier New', 'Courier', monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border: 1px solid #000;
}

pre {
    font-family: 'Courier New', 'Courier', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 2px solid #000;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.main {
    flex: 1;
}

.section {
    animation: fadeIn 0.3s ease-in;
}

.section.hidden {
    display: none;
}

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

.description {
    color: #666;
    margin-bottom: 32px;
}

/* Buttons */
.btn,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: #fff;
    color: #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.btn-icon:hover {
    opacity: 0.6;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label,
.label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 12px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
}

.input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    margin: 32px 0;
    padding: 24px;
    border: 2px solid #000;
    background: #fff;
}

#qr-canvas {
    display: block;
}

/* Verification Code */
.verification-code {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    border: 2px solid #000;
    background: #f5f5f5;
}

#verification-code-text {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border: 2px solid #000;
}

/* Status */
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    padding: 16px;
    border: 2px solid #000;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.status-indicator.success {
    background: #000;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

#status-text {
    font-weight: 700;
}

/* Code Blocks */
.code-block {
    position: relative;
    margin: 16px 0;
    padding: 16px;
    background: #f5f5f5;
    border: 2px solid #000;
}

.code-block code,
.code-block pre {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
}

.code-block .btn-icon {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* API Key Section */
.api-key-section,
.embed-section {
    margin: 32px 0;
}

/* Info Section */
.info-section {
    margin: 32px 0;
    padding: 24px;
    border: 2px solid #000;
    background: #f5f5f5;
}

.info-section ol {
    margin-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
}

/* Error */
.error-message {
    color: #000;
    font-weight: 700;
    padding: 16px;
    border: 2px solid #000;
    background: #f5f5f5;
}

/* Footer */
.footer {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 2px solid #000;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Clerk Components Override */
.cl-rootBox {
    margin: 0 auto;
}

.cl-card {
    border: 2px solid #000 !important;
    box-shadow: none !important;
}

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

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    .qr-container {
        padding: 16px;
    }
}