/* Page-specific styles: logout.css */

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'AlibabaSans-Regular', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.logout-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C3E50 0%, #3d5a73 40%, #77bfa3 100%);
    position: relative;
    overflow: hidden;
}

/* Logout Card */
.logout-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 50px 48px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    animation: cardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon Circle */
.logout-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #77bfa3, #98c9a3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(119, 191, 163, 0.35);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(119, 191, 163, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(119, 191, 163, 0.55); }
}

.logout-icon-circle i {
    font-size: 36px;
    color: #fff;
}

/* Title & Message */
.logout-title {
    font-family: 'Alibaba-PuHuiTi-Bold', sans-serif;
    font-size: 26px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.logout-message {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 36px;
}

/* Countdown */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.countdown-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
}

.countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e8f0ec;
    stroke-width: 6;
}

.ring-progress {
    fill: none;
    stroke: #77bfa3;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Alibaba-PuHuiTi-Bold', sans-serif;
    font-size: 36px;
    color: #2C3E50;
}

.countdown-text {
    font-size: 13px;
    color: #95a5a6;
    letter-spacing: 0.3px;
}

/* Redirect Button */
.redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #77bfa3, #66a58d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'AlibabaSans-Regular', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(119, 191, 163, 0.3);
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 191, 163, 0.45);
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatUp linear infinite;
}

.particle:nth-child(1) { left: 10%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; width: 10px; height: 10px; animation-duration: 12s; animation-delay: 2s; }
.particle:nth-child(3) { left: 45%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { left: 65%; width: 8px; height: 8px; animation-duration: 9s; animation-delay: 1s; }
.particle:nth-child(5) { left: 80%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6) { left: 92%; width: 7px; height: 7px; animation-duration: 7s; animation-delay: 5s; }

@keyframes floatUp {
    0% {
        bottom: -20px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .logout-card {
        padding: 45px 40px;
    }
    .logout-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .logout-wrapper {
        padding: 20px;
    }
    .logout-card {
        padding: 40px 32px;
        max-width: 100%;
    }
    .logout-icon-circle {
        width: 70px;
        height: 70px;
    }
    .logout-icon-circle i {
        font-size: 32px;
    }
    .logout-title {
        font-size: 22px;
    }
    .logout-message {
        font-size: 14px;
    }
    .countdown-ring {
        width: 90px;
        height: 90px;
    }
    .countdown-number {
        font-size: 32px;
    }
    .redirect-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logout-wrapper {
        padding: 16px;
    }
    .logout-card {
        padding: 32px 24px;
        width: 95%;
    }
    .logout-icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    .logout-icon-circle i {
        font-size: 28px;
    }
    .logout-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .logout-message {
        font-size: 13px;
        margin-bottom: 24px;
    }
    .countdown-container {
        margin-bottom: 24px;
    }
    .countdown-ring {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    .ring-bg,
    .ring-progress {
        stroke-width: 5;
    }
    .countdown-number {
        font-size: 28px;
    }
    .countdown-text {
        font-size: 12px;
    }
    .redirect-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }
}