/* ════════════════════════════════════════════════════════
   Picklly Signup Wizard
   Add to wwwroot/css/signup.css and reference in App.razor
   ════════════════════════════════════════════════════════ */

.signup-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f4f6f9;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Step indicators ── */
.signup-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.signup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.signup-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dde2ea;
    color: #666;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.signup-step.active .signup-step-num {
    background: #2563eb;
    color: #fff;
}

.signup-step.done .signup-step-num {
    background: #16a34a;
    color: #fff;
}

.signup-step-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.signup-step.active .signup-step-label { color: #2563eb; }
.signup-step.done .signup-step-label   { color: #16a34a; }

.signup-step-line {
    width: 60px;
    height: 2px;
    background: #dde2ea;
    margin: 0 4px;
    margin-bottom: 16px;
}

/* ── Card ── */
.signup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.signup-sub {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

/* ── Fields ── */
.signup-field {
    margin-bottom: 1.1rem;
}

.signup-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.signup-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color 0.15s;
    outline: none;
}

.signup-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.signup-row {
    display: flex;
    gap: 1rem;
}

.signup-row .signup-field {
    flex: 1;
}

.signup-field-sm {
    flex: 0 0 80px !important;
}

.signup-label-opt {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8rem;
}

.signup-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 4px 0 0;
}

/* ── Slug field ── */
.signup-slug-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.signup-slug-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.signup-slug-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
}

.signup-slug-suffix {
    background: #f3f4f6;
    color: #6b7280;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-left: 1.5px solid #d1d5db;
    white-space: nowrap;
}

.signup-slug-status {
    font-size: 0.82rem;
    margin: 4px 0 0;
    font-weight: 500;
}

.signup-slug-status.available { color: #16a34a; }
.signup-slug-status.taken     { color: #dc2626; }
.signup-slug-status.checking  { color: #9ca3af; }

/* ── Buttons ── */
.signup-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s;
}

.signup-btn:hover:not(:disabled) { background: #1d4ed8; }
.signup-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.signup-btn-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.signup-btn-row .signup-btn { flex: 1; margin-top: 0; }

.signup-btn-back {
    padding: 12px 16px;
    background: none;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.signup-btn-back:hover { border-color: #9ca3af; color: #374151; }

/* ── Error ── */
.signup-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* ── Provisioning screen ── */
.signup-provisioning {
    text-align: center;
    padding: 1rem 0;
}

.signup-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.signup-provision-status {
    color: #6b7280;
    font-size: 0.9rem;
    min-height: 1.4em;
    margin: 0 0 1.5rem;
}

.signup-progress-bar {
    background: #e5e7eb;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    max-width: 320px;
}

.signup-progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.signup-progress-pct {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
}

.signup-fail-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ── Trial note ── */
.signup-trial-note {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 1.5rem;
    text-align: center;
}
