/* ============================================
   Auth Pages Styles (Signup, Login, etc.)
   ============================================ */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        var(--bg-primary);
}

.header-simple {
    background: transparent;
    border-bottom: none;
}

.header-simple .nav {
    height: 80px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
}

/* Auth Main */
.auth-main {
    padding: 100px 0 60px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Form Section */
.auth-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.step-item.active {
    color: var(--text-primary);
}

.step-item.completed {
    color: var(--success);
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.step-item.active .step-number {
    background: var(--accent-gradient);
    border-color: transparent;
}

.step-item.completed .step-number {
    background: var(--success);
    border-color: transparent;
}

.step-item span:not(.step-number) {
    font-size: 14px;
    font-weight: 500;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--border-light);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-wrapper input {
    padding-left: 44px;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15),
                0 0 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

input:focus::placeholder {
    opacity: 0.5;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Checkbox */
.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-tertiary);
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent-gradient);
    border-color: transparent;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox-label input:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label a {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-actions .btn {
    flex: 1;
}

/* Button States */
.btn-spinner {
    animation: spin 1s linear infinite;
}

.btn-spinner.hidden {
    display: none;
}

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

/* Check Result */
.check-result {
    margin-top: 32px;
    padding: 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.check-result.safe {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.check-result.hidden {
    display: none;
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.result-icon.warning {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.result-icon.safe {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.check-result h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.check-result > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.breach-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.breach-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.result-cta {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.result-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Plan Selection */
.plan-selection {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.plan-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-content {
    padding: 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.plan-option input:checked + .plan-content {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.plan-option.popular .plan-content {
    border-color: var(--accent-primary);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 4px 12px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.plan-name {
    font-weight: 600;
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
}

.plan-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stripe Element */
.stripe-element {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
}

/* Order Summary */
.order-summary {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Payment Security */
.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
}

.payment-security svg {
    color: var(--success);
}

/* Info Section */
.auth-info-section {
    position: sticky;
    top: 100px;
}

.info-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.info-list {
    margin-bottom: 24px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.info-list svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.guarantee-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
}

.guarantee-box svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.guarantee-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.guarantee-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Testimonial Card */
.testimonial-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: #FBBF24;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-info-section {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 80px 0 40px;
    }

    .auth-form-section {
        padding: 24px;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-item span:not(.step-number) {
        display: none;
    }

    .step-divider {
        width: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .auth-info-section {
        grid-template-columns: 1fr;
    }
}
