﻿/* ═══════════════════════════════════════════════════════
   SIGNUP / BUY PAGE — Scoped Styles
   Design System: Neo Accounting v2.0
   ═══════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.signup-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4338CA 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.signup-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.signup-wrapper::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

/* ── Card ── */
.signup-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--neo-radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: signup-slideUp 0.5s ease-out;
}

@keyframes signup-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Brand ── */
.signup-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.signup-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-primary-lighter) 100%);
    border-radius: var(--neo-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.signup-logo ::deep svg {
    width: 28px;
    height: 28px;
    color: white;
}

.signup-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--neo-text-primary);
    margin: 0;
}

.signup-subtitle {
    font-size: 0.85rem;
    color: var(--neo-text-muted);
    margin: 0.3rem 0 0;
}

/* ═══════════════════════════════════════════════════════
   STEPPER
   ═══════════════════════════════════════════════════════ */

.signup-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
}

.signup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.signup-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    border: 2px solid var(--neo-border);
    background: var(--neo-bg-card);
    color: var(--neo-text-muted);
    transition: all 0.3s ease;
}

.signup-step-dot ::deep svg {
    width: 16px;
    height: 16px;
}

.signup-step.active .signup-step-dot {
    border-color: var(--neo-primary);
    background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.signup-step.done .signup-step-dot {
    border-color: var(--neo-success);
    background: var(--neo-success);
    color: white;
}

.signup-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--neo-text-muted);
    white-space: nowrap;
}

.signup-step.active .signup-step-label {
    color: var(--neo-primary);
}

.signup-step.done .signup-step-label {
    color: var(--neo-success);
}

.signup-step-line {
    flex: 1;
    height: 2px;
    background: var(--neo-border);
    margin: 0 0.4rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
    min-width: 30px;
}

.signup-step-line.done {
    background: var(--neo-success);
}

/* ═══════════════════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════════════════ */

.signup-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--neo-radius-sm);
    font-size: 0.84rem;
    margin-bottom: 1rem;
    animation: signup-slideUp 0.3s ease-out;
}

.signup-message ::deep svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.signup-message-error {
    background: var(--neo-danger-bg);
    border: 1px solid var(--neo-danger-border);
    color: var(--neo-danger);
}

.signup-message-info {
    background: var(--neo-info-bg);
    border: 1px solid var(--neo-info-border);
    color: var(--neo-info);
}

/* ═══════════════════════════════════════════════════════
   FORM SECTION
   ═══════════════════════════════════════════════════════ */

.signup-section {
    animation: signup-slideUp 0.35s ease-out;
}

.signup-field {
    margin-bottom: 0.3rem;
}

.signup-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neo-text-secondary);
    margin-bottom: 0.4rem;
}

.signup-optional {
    font-weight: 400;
    color: var(--neo-text-muted);
    font-size: 0.78rem;
}

.signup-hint {
    font-size: 0.88rem;
    color: var(--neo-text-secondary);
    margin: 0 0 1.25rem;
    padding: 0.6rem 0.85rem;
    background: var(--neo-bg-subtle);
    border-radius: var(--neo-radius-sm);
    border-right: 3px solid var(--neo-primary);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.signup-submit {
    width: 100%;
    min-height: 46px;
    border-radius: var(--neo-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.signup-submit ::deep svg {
    width: 18px;
    height: 18px;
}

.signup-link-btn {
    width: 100%;
    min-height: 42px;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.84rem;
    font-weight: 500;
}

.signup-link-btn ::deep svg {
    width: 16px;
    height: 16px;
}

/* ── Spinner ── */
.signup-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: signup-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   PLAN CARDS
   ═══════════════════════════════════════════════════════ */

.signup-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.signup-plan-card {
    padding: 1rem 1.15rem;
    border: 2px solid var(--neo-border);
    border-radius: var(--neo-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--neo-bg-card);
    position: relative;
}

.signup-plan-card:hover {
    border-color: var(--neo-primary-lighter);
    box-shadow: var(--neo-shadow-sm);
}

.signup-plan-card.selected {
    border-color: var(--neo-primary);
    background: var(--neo-primary-bg);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.signup-plan-card.selected::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: var(--neo-primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.signup-plan-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.signup-plan-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--neo-text-primary);
}

.signup-plan-badge {
    padding: 0.1rem 0.5rem;
    border-radius: var(--neo-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-primary-light) 100%);
    color: white;
    letter-spacing: 0.03em;
}

.signup-plan-desc {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--neo-text-muted);
}

.signup-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.signup-plan-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--neo-primary);
}

.signup-plan-unit {
    font-size: 0.78rem;
    color: var(--neo-text-muted);
}

.signup-plan-meta {
    font-size: 0.8rem;
    color: var(--neo-text-secondary);
    margin-bottom: 0.5rem;
}

.signup-plan-features {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.signup-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--neo-text-secondary);
}

.signup-plan-features li ::deep svg {
    width: 14px;
    height: 14px;
    color: var(--neo-success);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   ORDER SUMMARY
   ═══════════════════════════════════════════════════════ */

.signup-order-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--neo-success-bg);
    border: 1px solid var(--neo-success-border);
    border-radius: var(--neo-radius-sm);
    font-size: 0.88rem;
    color: var(--neo-success);
    margin-bottom: 0.75rem;
    animation: signup-slideUp 0.3s ease-out;
}

.signup-order-summary ::deep svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.signup-empty {
    text-align: center;
    padding: 2rem;
    color: var(--neo-text-muted);
    font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.signup-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--neo-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.signup-footer a {
    color: var(--neo-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.signup-footer a:hover {
    color: var(--neo-primary-dark);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .signup-wrapper {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .signup-card {
        padding: 1.5rem;
        border-radius: var(--neo-radius-lg);
    }

    .signup-step-label {
        font-size: 0.65rem;
    }

    .signup-step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}
