/* Logout Page Base */
.logout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Animated Background Shapes */
.logout-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.logout-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: logout-float 20s infinite ease-in-out;
}

.logout-bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--rz-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.logout-bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--rz-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.logout-bg-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--rz-info);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes logout-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Logout Container */
.logout-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

/* Logout Card */
.logout-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 3rem;
    animation: logout-slideUp 0.5s ease-out;
}

@keyframes logout-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.logout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logout-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rz-primary) 0%, var(--rz-primary-dark) 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px -10px var(--rz-primary);
}

.logout-logo {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.logout-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Content */
.logout-content {
    text-align: center;
    padding: 2rem 0;
}

.logout-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 1.5rem 0 0.5rem 0;
}

.logout-submessage {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Spinner */
.logout-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: logout-spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--rz-primary);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--rz-secondary);
    animation-delay: 0.15s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--rz-info);
    animation-delay: 0.3s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes logout-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.logout-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.logout-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .logout-card {
        background: rgba(30, 41, 59, 0.95);
    }

    .logout-title {
        color: #f8fafc;
    }

    .logout-message {
        color: #f8fafc;
    }

    .logout-submessage {
        color: #94a3b8;
    }

    .logout-footer {
        border-top-color: #334155;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .logout-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .logout-logo-container {
        width: 64px;
        height: 64px;
    }

    .logout-logo {
        width: 36px;
        height: 36px;
    }

    .logout-title {
        font-size: 1.5rem;
    }
}
