/* ========================================
   Step 5: 註冊成功頁面 - 現代化設計
   ======================================== */

/* 慶祝背景效果 */
.celebration-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* CSS-only 彩帶效果 */
.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: confettiFall 3s linear infinite;
}

.confetti::before {
    left: 20%;
    animation-delay: 0s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.confetti::after {
    left: 80%;
    animation-delay: 1s;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 主容器 */
.success-container-modern {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

/* 成功主視覺區域 */
.success-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon-large {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
}

.checkmark-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #28a745;
    stroke-miterlimit: 10;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
    animation: scaleIn 0.5s ease-in-out;
}

.checkmark-circle-large {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #28a745;
    fill: rgba(40, 167, 69, 0.1);
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check-large {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #28a745;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

/* 標題 */
.success-title-modern {
    font-size: 3rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin: 0 0 1rem 0;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.success-subtitle-modern {
    font-size: 1.5rem;
    color: var(--wizard-text-muted);
    margin: 0;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 帳號資訊卡片 */
.account-info-card {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-lg);
    box-shadow: var(--wizard-shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-header-gradient i,
.card-header-gradient svg {
    width: 24px;
    height: 24px;
}

.card-body {
    padding: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--wizard-border);
    transition: background-color 0.2s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 1.3rem;
}

.info-label i,
.info-label svg {
    width: 20px;
    height: 20px;
    color: var(--wizard-primary);
}

.info-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wizard-primary);
    font-family: 'Consolas', 'Monaco', monospace;
}

.success-email {
    color: #6366f1;
}

/* 提示卡片網格 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tip-card {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-lg);
    padding: 1.5rem;
    border-left: 4px solid;
    display: flex;
    gap: 1rem;
    box-shadow: var(--wizard-shadow-sm);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out both;
}

.tip-card:nth-child(1) {
    animation-delay: 0.6s;
}

.tip-card:nth-child(2) {
    animation-delay: 0.7s;
}

.tip-email {
    border-left-color: #0d6efd;
}

.tip-security {
    border-left-color: #ffc107;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wizard-shadow-md);
}

.tip-card i,
.tip-card svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 4px;
}

.tip-email i,
.tip-email svg {
    color: #0d6efd;
}

.tip-security i,
.tip-security svg {
    color: #ffc107;
}

.tip-card strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tip-card p {
    margin: 0;
    color: var(--wizard-text-muted);
    font-size: 1.15rem;
    line-height: 1.5;
}

/* CTA 按鈕組 */
.success-actions-modern {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.5s ease-out 0.8s both;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--wizard-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--wizard-shadow-sm);
}

.btn-modern i,
.btn-modern svg {
    width: 20px;
    height: 20px;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary-modern {
    background: white;
    color: var(--wizard-text);
    border: 2px solid var(--wizard-border);
}

.btn-secondary-modern:hover {
    background: var(--wizard-input-bg);
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
    transform: translateY(-2px);
}

/* ========================================
   響應式設計
   ======================================== */
@media (max-width: 768px) {
    .success-container-modern {
        padding: 1.5rem;
    }

    .success-icon-large {
        width: 100px;
        height: 100px;
    }

    .checkmark-large {
        width: 100px;
        height: 100px;
    }

    .success-title-modern {
        font-size: 2rem;
    }

    .success-subtitle-modern {
        font-size: 1.1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .success-actions-modern {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .info-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .success-title-modern {
        font-size: 1.75rem;
    }

    .card-header-gradient {
        padding: 1.25rem;
        font-size: 1.1rem;
    }

    .tip-card {
        padding: 1.25rem;
    }
}